diff options
| author | Stefanus Du Toit <stefanus.du.toit@intel.com> | 2013-06-18 17:08:10 +0000 |
|---|---|---|
| committer | Stefanus Du Toit <stefanus.du.toit@intel.com> | 2013-06-18 17:08:10 +0000 |
| commit | 8811ad4f81766bfb6f49fafbf6ba5f419d61dcd3 (patch) | |
| tree | 0ffd864866584022e5f74b441a42719a741fe439 /llvm/lib/Target/X86 | |
| parent | 4526b1d410a3d6d5571ddd27e2531aad13ca6093 (diff) | |
| download | bcm5719-llvm-8811ad4f81766bfb6f49fafbf6ba5f419d61dcd3.tar.gz bcm5719-llvm-8811ad4f81766bfb6f49fafbf6ba5f419d61dcd3.zip | |
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.
llvm-svn: 184207
Diffstat (limited to 'llvm/lib/Target/X86')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrTSX.td | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86InstrTSX.td b/llvm/lib/Target/X86/X86InstrTSX.td index 363a190aa85..59a6f1e376f 100644 --- a/llvm/lib/Target/X86/X86InstrTSX.td +++ b/llvm/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]>; + |

