aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86InstrTSX.td
diff options
context:
space:
mode:
authorStefanus Du Toit <stefanus.du.toit@intel.com>2013-06-18 17:08:10 +0000
committerStefanus Du Toit <stefanus.du.toit@intel.com>2013-06-18 17:08:10 +0000
commit23306deb92e2424165f2145895e21e223c3887eb (patch)
tree010de068999f5a5d00ea5b28788b7609666f07aa /lib/Target/X86/X86InstrTSX.td
parent8ee23f00c7e9343d09313051c318906558d6ad17 (diff)
downloadexternal_llvm-23306deb92e2424165f2145895e21e223c3887eb.zip
external_llvm-23306deb92e2424165f2145895e21e223c3887eb.tar.gz
external_llvm-23306deb92e2424165f2145895e21e223c3887eb.tar.bz2
Add support for encoding the HLE XACQUIRE and XRELEASE prefixes.
For decoding, keep the current behavior of always decoding these as their REP versions. In the future, this could be improved to recognize the cases where these behave as XACQUIRE and XRELEASE and decode them as such. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184207 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrTSX.td')
-rw-r--r--lib/Target/X86/X86InstrTSX.td7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrTSX.td b/lib/Target/X86/X86InstrTSX.td
index 363a190..59a6f1e 100644
--- a/lib/Target/X86/X86InstrTSX.td
+++ b/lib/Target/X86/X86InstrTSX.td
@@ -37,3 +37,10 @@ def XTEST : I<0x01, MRM_D6, (outs), (ins),
def XABORT : Ii8<0xc6, MRM_F8, (outs), (ins i8imm:$imm),
"xabort\t$imm",
[(int_x86_xabort imm:$imm)]>, Requires<[HasRTM]>;
+
+// HLE prefixes
+
+def XACQUIRE_PREFIX : I<0xF2, RawFrm, (outs), (ins), "xacquire", []>, Requires<[HasHLE]>;
+
+def XRELEASE_PREFIX : I<0xF3, RawFrm, (outs), (ins), "xrelease", []>, Requires<[HasHLE]>;
+