Rename @llvm.debugger to @llvm.debugtrap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156774 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2012-05-14 18:58:10 +00:00
parent 19e7421243
commit a6063c6e29
8 changed files with 16 additions and 16 deletions

View File

@ -307,8 +307,8 @@
'<tt>llvm.annotation.*</tt>' Intrinsic</a></li>
<li><a href="#int_trap">
'<tt>llvm.trap</tt>' Intrinsic</a></li>
<li><a href="#int_debugger">
'<tt>llvm.debugger</tt>' Intrinsic</a></li>
<li><a href="#int_debugtrap">
'<tt>llvm.debugtrap</tt>' Intrinsic</a></li>
<li><a href="#int_stackprotector">
'<tt>llvm.stackprotector</tt>' Intrinsic</a></li>
<li><a href="#int_objectsize">
@ -8402,18 +8402,18 @@ LLVM</a>.</p>
<!-- _______________________________________________________________________ -->
<h4>
<a name="int_debugger">'<tt>llvm.debugger</tt>' Intrinsic</a>
<a name="int_debugtrap">'<tt>llvm.debugtrap</tt>' Intrinsic</a>
</h4>
<div>
<h5>Syntax:</h5>
<pre>
declare void @llvm.debugger()
declare void @llvm.debugtrap()
</pre>
<h5>Overview:</h5>
<p>The '<tt>llvm.debugger</tt>' intrinsic.</p>
<p>The '<tt>llvm.debugtrap</tt>' intrinsic.</p>
<h5>Arguments:</h5>
<p>None.</p>

View File

@ -582,8 +582,8 @@ namespace ISD {
// TRAP - Trapping instruction
TRAP,
// DEBUGGER - Trap intented to get the attention of a debugger.
DEBUGGER,
// DEBUGTRAP - Trap intented to get the attention of a debugger.
DEBUGTRAP,
// PREFETCH - This corresponds to a prefetch intrinsic. It takes chains are
// their first operand. The other operands are the address to prefetch,

View File

@ -399,8 +399,8 @@ def int_flt_rounds : Intrinsic<[llvm_i32_ty]>,
GCCBuiltin<"__builtin_flt_rounds">;
def int_trap : Intrinsic<[]>,
GCCBuiltin<"__builtin_trap">;
def int_debugger : Intrinsic<[]>,
GCCBuiltin<"__builtin_debugger">;
def int_debugtrap : Intrinsic<[]>,
GCCBuiltin<"__builtin_debugtrap">;
// Intrisics to support half precision floating point format
let Properties = [IntrNoMem] in {

View File

@ -404,7 +404,7 @@ def brind : SDNode<"ISD::BRIND" , SDTBrind, [SDNPHasChain]>;
def br : SDNode<"ISD::BR" , SDTBr, [SDNPHasChain]>;
def trap : SDNode<"ISD::TRAP" , SDTNone,
[SDNPHasChain, SDNPSideEffect]>;
def debugger : SDNode<"ISD::DEBUGGER" , SDTNone,
def debugtrap : SDNode<"ISD::DEBUGTRAP" , SDTNone,
[SDNPHasChain, SDNPSideEffect]>;
def prefetch : SDNode<"ISD::PREFETCH" , SDTPrefetch,

View File

@ -5087,8 +5087,8 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
DAG.setRoot(Result.second);
return 0;
}
case Intrinsic::debugger: {
DAG.setRoot(DAG.getNode(ISD::DEBUGGER, dl,MVT::Other, getRoot()));
case Intrinsic::debugtrap: {
DAG.setRoot(DAG.getNode(ISD::DEBUGTRAP, dl,MVT::Other, getRoot()));
return 0;
}
case Intrinsic::uadd_with_overflow:

View File

@ -265,7 +265,7 @@ std::string SDNode::getOperationName(const SelectionDAG *G) const {
case ISD::STACKSAVE: return "stacksave";
case ISD::STACKRESTORE: return "stackrestore";
case ISD::TRAP: return "trap";
case ISD::DEBUGGER: return "debugger";
case ISD::DEBUGTRAP: return "debugtrap";
// Bit manipulation
case ISD::BSWAP: return "bswap";

View File

@ -36,7 +36,7 @@ let Uses = [EFLAGS] in
def INT3 : I<0xcc, RawFrm, (outs), (ins), "int3",
[(int_x86_int (i8 3))], IIC_INT3>;
def : Pat<(debugger),
def : Pat<(debugtrap),
(INT3)>;
// The long form of "int $3" turns into int3 as a size optimization.

View File

@ -12,10 +12,10 @@ entry:
; CHECK: int3
define i32 @test1() noreturn nounwind {
entry:
tail call void @llvm.debugger( )
tail call void @llvm.debugtrap( )
unreachable
}
declare void @llvm.trap() nounwind
declare void @llvm.debugger() nounwind
declare void @llvm.debugtrap() nounwind