mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[X86][VMX] Tag VMX instructions scheduler classes
Tagged all as system instructions llvm-svn: 320053
This commit is contained in:
parent
fc0e607b1a
commit
1900462306
@ -15,56 +15,66 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
// VMX instructions
|
||||
|
||||
let SchedRW = [WriteSystem] in {
|
||||
// 66 0F 38 80
|
||||
def INVEPT32 : I<0x80, MRMSrcMem, (outs), (ins GR32:$src1, i128mem:$src2),
|
||||
"invept\t{$src2, $src1|$src1, $src2}", []>, T8PD,
|
||||
"invept\t{$src2, $src1|$src1, $src2}", [], IIC_VMX>, T8PD,
|
||||
Requires<[Not64BitMode]>;
|
||||
def INVEPT64 : I<0x80, MRMSrcMem, (outs), (ins GR64:$src1, i128mem:$src2),
|
||||
"invept\t{$src2, $src1|$src1, $src2}", []>, T8PD,
|
||||
"invept\t{$src2, $src1|$src1, $src2}", [], IIC_VMX>, T8PD,
|
||||
Requires<[In64BitMode]>;
|
||||
|
||||
// 66 0F 38 81
|
||||
def INVVPID32 : I<0x81, MRMSrcMem, (outs), (ins GR32:$src1, i128mem:$src2),
|
||||
"invvpid\t{$src2, $src1|$src1, $src2}", []>, T8PD,
|
||||
"invvpid\t{$src2, $src1|$src1, $src2}", [], IIC_VMX>, T8PD,
|
||||
Requires<[Not64BitMode]>;
|
||||
def INVVPID64 : I<0x81, MRMSrcMem, (outs), (ins GR64:$src1, i128mem:$src2),
|
||||
"invvpid\t{$src2, $src1|$src1, $src2}", []>, T8PD,
|
||||
"invvpid\t{$src2, $src1|$src1, $src2}", [], IIC_VMX>, T8PD,
|
||||
Requires<[In64BitMode]>;
|
||||
|
||||
// 0F 01 C1
|
||||
def VMCALL : I<0x01, MRM_C1, (outs), (ins), "vmcall", []>, TB;
|
||||
def VMCALL : I<0x01, MRM_C1, (outs), (ins), "vmcall", [], IIC_VMX>, TB;
|
||||
def VMCLEARm : I<0xC7, MRM6m, (outs), (ins i64mem:$vmcs),
|
||||
"vmclear\t$vmcs", []>, PD;
|
||||
|
||||
// OF 01 D4
|
||||
def VMFUNC : I<0x01, MRM_D4, (outs), (ins), "vmfunc", []>, TB;
|
||||
def VMFUNC : I<0x01, MRM_D4, (outs), (ins), "vmfunc", [], IIC_VMX>, TB;
|
||||
|
||||
// 0F 01 C2
|
||||
def VMLAUNCH : I<0x01, MRM_C2, (outs), (ins), "vmlaunch", []>, TB;
|
||||
def VMLAUNCH : I<0x01, MRM_C2, (outs), (ins), "vmlaunch", [], IIC_VMX>, TB;
|
||||
|
||||
// 0F 01 C3
|
||||
def VMRESUME : I<0x01, MRM_C3, (outs), (ins), "vmresume", []>, TB;
|
||||
def VMRESUME : I<0x01, MRM_C3, (outs), (ins), "vmresume", [], IIC_VMX>, TB;
|
||||
def VMPTRLDm : I<0xC7, MRM6m, (outs), (ins i64mem:$vmcs),
|
||||
"vmptrld\t$vmcs", []>, PS;
|
||||
"vmptrld\t$vmcs", [], IIC_VMX>, PS;
|
||||
def VMPTRSTm : I<0xC7, MRM7m, (outs), (ins i64mem:$vmcs),
|
||||
"vmptrst\t$vmcs", []>, PS;
|
||||
"vmptrst\t$vmcs", [], IIC_VMX>, PS;
|
||||
def VMREAD64rr : I<0x78, MRMDestReg, (outs GR64:$dst), (ins GR64:$src),
|
||||
"vmread{q}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[In64BitMode]>;
|
||||
"vmread{q}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[In64BitMode]>;
|
||||
def VMREAD32rr : I<0x78, MRMDestReg, (outs GR32:$dst), (ins GR32:$src),
|
||||
"vmread{l}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[Not64BitMode]>;
|
||||
"vmread{l}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[Not64BitMode]>;
|
||||
|
||||
let mayStore = 1 in {
|
||||
def VMREAD64mr : I<0x78, MRMDestMem, (outs), (ins i64mem:$dst, GR64:$src),
|
||||
"vmread{q}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[In64BitMode]>;
|
||||
"vmread{q}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[In64BitMode]>;
|
||||
def VMREAD32mr : I<0x78, MRMDestMem, (outs), (ins i32mem:$dst, GR32:$src),
|
||||
"vmread{l}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[Not64BitMode]>;
|
||||
}
|
||||
"vmread{l}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[Not64BitMode]>;
|
||||
} // mayStore
|
||||
|
||||
def VMWRITE64rr : I<0x79, MRMSrcReg, (outs GR64:$dst), (ins GR64:$src),
|
||||
"vmwrite{q}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[In64BitMode]>;
|
||||
"vmwrite{q}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[In64BitMode]>;
|
||||
def VMWRITE32rr : I<0x79, MRMSrcReg, (outs GR32:$dst), (ins GR32:$src),
|
||||
"vmwrite{l}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[Not64BitMode]>;
|
||||
"vmwrite{l}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[Not64BitMode]>;
|
||||
|
||||
let mayLoad = 1 in {
|
||||
def VMWRITE64rm : I<0x79, MRMSrcMem, (outs GR64:$dst), (ins i64mem:$src),
|
||||
"vmwrite{q}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[In64BitMode]>;
|
||||
"vmwrite{q}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[In64BitMode]>;
|
||||
def VMWRITE32rm : I<0x79, MRMSrcMem, (outs GR32:$dst), (ins i32mem:$src),
|
||||
"vmwrite{l}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[Not64BitMode]>;
|
||||
}
|
||||
"vmwrite{l}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[Not64BitMode]>;
|
||||
} // mayLoad
|
||||
|
||||
// 0F 01 C4
|
||||
def VMXOFF : I<0x01, MRM_C4, (outs), (ins), "vmxoff", []>, TB;
|
||||
def VMXON : I<0xC7, MRM6m, (outs), (ins i64mem:$vmxon),
|
||||
"vmxon\t$vmxon", []>, XS;
|
||||
|
||||
} // SchedRW
|
||||
|
@ -508,6 +508,7 @@ def IIC_SLDT : InstrItinClass;
|
||||
def IIC_STR : InstrItinClass;
|
||||
def IIC_SKINIT : InstrItinClass;
|
||||
def IIC_SVM : InstrItinClass;
|
||||
def IIC_VMX : InstrItinClass;
|
||||
def IIC_CLGI : InstrItinClass;
|
||||
def IIC_STGI : InstrItinClass;
|
||||
def IIC_SWAPGS : InstrItinClass;
|
||||
|
Loading…
Reference in New Issue
Block a user