aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-01-15 07:02:33 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-01-15 07:02:33 +0000
commit66fac79b899904ddd82e5ee354a6d370d80230f6 (patch)
tree91bf22e85b1b2293c66acb746a96fb0b64598628 /include
parent0747baaf6accc331d74764f965b9386e44374eeb (diff)
downloadexternal_llvm-66fac79b899904ddd82e5ee354a6d370d80230f6.zip
external_llvm-66fac79b899904ddd82e5ee354a6d370d80230f6.tar.gz
external_llvm-66fac79b899904ddd82e5ee354a6d370d80230f6.tar.bz2
For PR1839: add initial support for __builtin_trap. llvm-gcc part is missed
as well as PPC codegen git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h3
-rw-r--r--include/llvm/Intrinsics.td2
2 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 47e3feb..3082383 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -563,6 +563,9 @@ namespace ISD {
// chain as output.
TRAMPOLINE,
+ // TRAP - Trapping instruction
+ TRAP,
+
// BUILTIN_OP_END - This must be the last enum value in this list.
BUILTIN_OP_END
};
diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td
index 94e5670..703b794 100644
--- a/include/llvm/Intrinsics.td
+++ b/include/llvm/Intrinsics.td
@@ -266,6 +266,8 @@ def int_init_trampoline : Intrinsic<[llvm_ptr_ty, llvm_ptr_ty, llvm_ptr_ty,
//
def int_flt_rounds : Intrinsic<[llvm_i32_ty]>,
GCCBuiltin<"__builtin_flt_rounds">;
+def int_trap : Intrinsic<[llvm_void_ty]>,
+ GCCBuiltin<"__builtin_trap">;
//===----------------------------------------------------------------------===//
// Target-specific intrinsics