summaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86InstrSystem.td
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2012-05-11 00:19:32 +0000
committerDan Gohman <gohman@apple.com>2012-05-11 00:19:32 +0000
commitd4347e1af9141ec9f8e3e527367bfd16c0cc4ffb (patch)
tree15339f77ace4f0f4501e61e22ce6d01f82bce24a /lib/Target/X86/X86InstrSystem.td
parent61aef8bdf7a60bb1ab510fee0c5b2792468aadd3 (diff)
downloadexternal_llvm-d4347e1af9141ec9f8e3e527367bfd16c0cc4ffb.zip
external_llvm-d4347e1af9141ec9f8e3e527367bfd16c0cc4ffb.tar.gz
external_llvm-d4347e1af9141ec9f8e3e527367bfd16c0cc4ffb.tar.bz2
Define a new intrinsic, @llvm.debugger. It will be similar to __builtin_trap(),
but it generates int3 on x86 instead of ud2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrSystem.td')
-rw-r--r--lib/Target/X86/X86InstrSystem.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrSystem.td b/lib/Target/X86/X86InstrSystem.td
index f1ca114..dd1b499 100644
--- a/lib/Target/X86/X86InstrSystem.td
+++ b/lib/Target/X86/X86InstrSystem.td
@@ -36,6 +36,9 @@ let Uses = [EFLAGS] in
def INT3 : I<0xcc, RawFrm, (outs), (ins), "int3",
[(int_x86_int (i8 3))], IIC_INT3>;
+def : Pat<(debugger),
+ (INT3)>;
+
// The long form of "int $3" turns into int3 as a size optimization.
// FIXME: This doesn't work because InstAlias can't match immediate constants.
//def : InstAlias<"int\t$3", (INT3)>;