aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-01-18 22:11:29 +0000
committerEric Christopher <echristo@apple.com>2010-01-18 22:11:29 +0000
commitd6d9457a75b8059f16c36fd54d9b439036d268fc (patch)
tree30813c6a5536e2e6cbb3bc2145623165657193da /lib/Target
parentbfb0597c23de66a817256d112cac812cd86c3989 (diff)
downloadexternal_llvm-d6d9457a75b8059f16c36fd54d9b439036d268fc.zip
external_llvm-d6d9457a75b8059f16c36fd54d9b439036d268fc.tar.gz
external_llvm-d6d9457a75b8059f16c36fd54d9b439036d268fc.tar.bz2
Have FastISel handle llvm.trap().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/X86FastISel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp
index 7e02d59..d5ad61b 100644
--- a/lib/Target/X86/X86FastISel.cpp
+++ b/lib/Target/X86/X86FastISel.cpp
@@ -1153,6 +1153,10 @@ bool X86FastISel::X86VisitIntrinsicCall(IntrinsicInst &I) {
// FIXME: Handle more intrinsics.
switch (I.getIntrinsicID()) {
default: return false;
+ case Intrinsic::trap: {
+ BuildMI(MBB, DL, TII.get(X86::TRAP));
+ return true;
+ }
case Intrinsic::sadd_with_overflow:
case Intrinsic::uadd_with_overflow: {
// Replace "add with overflow" intrinsics with an "add" instruction followed