[llvm-commits] [llvm] r156593 - in /llvm/trunk: docs/LangRef.html include/llvm/CodeGen/ISDOpcodes.h include/llvm/Intrinsics.td include/llvm/Target/TargetSelectionDAG.td lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp lib/Target/X86/X86InstrSystem.td test/CodeGen/X86/trap.ll

Dan Gohman gohman at apple.com
Fri May 11 08:29:09 PDT 2012


On May 10, 2012, at 10:26 PM, Nick Lewycky wrote:

> Dan Gohman wrote:
>> 
>> Modified: llvm/trunk/docs/LangRef.html
>> +<h5>Semantics:</h5>
>> +<p>This intrinsic is lowered to code which is intended to cause an execution
>> +   trap with the intention of requesting the attention of a debugger.</p>
> 
> ... but no other effect? Is that how it's different from @llvm.trap, that if there is no debugger, the program continue running normally?

The main difference is that on x86 it generates int3, rather than ud2.  Perhaps I
tried to hard to make the language generic.

>> 
>> 
>> +    // DEBUGGER - Trap intented to get the attention of a debugger.
> 
> Typo "intented"


Thanks, I'll fix it.

Dan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120511/6c8abdf7/attachment.html>


More information about the llvm-commits mailing list