[NFCI][X86] Mark a few lately-added system instructions as such for Scheduling purposes

This commit is contained in:
Roman Lebedev 2021-05-08 20:39:26 +03:00
parent 492173d42b
commit d5494931f2
No known key found for this signature in database
GPG Key ID: 083C3EBB4A1689E0
2 changed files with 6 additions and 8 deletions

View File

@ -2962,14 +2962,15 @@ let Uses = [EAX], SchedRW = [WriteSystem] in
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// SERIALIZE Instruction // SERIALIZE Instruction
// //
def SERIALIZE : I<0x01, MRM_E8, (outs), (ins), "serialize", let SchedRW = [WriteSystem] in
[(int_x86_serialize)]>, PS, def SERIALIZE : I<0x01, MRM_E8, (outs), (ins), "serialize",
Requires<[HasSERIALIZE]>; [(int_x86_serialize)]>, PS,
Requires<[HasSERIALIZE]>;
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// TSXLDTRK - TSX Suspend Load Address Tracking // TSXLDTRK - TSX Suspend Load Address Tracking
// //
let Predicates = [HasTSXLDTRK] in { let Predicates = [HasTSXLDTRK], SchedRW = [WriteSystem] in {
def XSUSLDTRK : I<0x01, MRM_E8, (outs), (ins), "xsusldtrk", def XSUSLDTRK : I<0x01, MRM_E8, (outs), (ins), "xsusldtrk",
[(int_x86_xsusldtrk)]>, XD; [(int_x86_xsusldtrk)]>, XD;
def XRESLDTRK : I<0x01, MRM_E9, (outs), (ins), "xresldtrk", def XRESLDTRK : I<0x01, MRM_E9, (outs), (ins), "xresldtrk",
@ -2979,7 +2980,7 @@ let Predicates = [HasTSXLDTRK] in {
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// UINTR Instructions // UINTR Instructions
// //
let Predicates = [HasUINTR, In64BitMode] in { let Predicates = [HasUINTR, In64BitMode], SchedRW = [WriteSystem] in {
def UIRET : I<0x01, MRM_EC, (outs), (ins), "uiret", def UIRET : I<0x01, MRM_EC, (outs), (ins), "uiret",
[]>, XS; []>, XS;
def CLUI : I<0x01, MRM_EE, (outs), (ins), "clui", def CLUI : I<0x01, MRM_EE, (outs), (ins), "clui",

View File

@ -47,15 +47,12 @@ let Uses = [EFLAGS] in
def INTO : I<0xce, RawFrm, (outs), (ins), "into", []>, Requires<[Not64BitMode]>; def INTO : I<0xce, RawFrm, (outs), (ins), "into", []>, Requires<[Not64BitMode]>;
def INT3 : I<0xcc, RawFrm, (outs), (ins), "int3", [(int_x86_int (i8 3))]>; def INT3 : I<0xcc, RawFrm, (outs), (ins), "int3", [(int_x86_int (i8 3))]>;
} // SchedRW
def UBSAN_UD1 : PseudoI<(outs), (ins i32imm:$kind), [(ubsantrap (i32 timm:$kind))]>; def UBSAN_UD1 : PseudoI<(outs), (ins i32imm:$kind), [(ubsantrap (i32 timm:$kind))]>;
// The long form of "int $3" turns into int3 as a size optimization. // 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. // FIXME: This doesn't work because InstAlias can't match immediate constants.
//def : InstAlias<"int\t$3", (INT3)>; //def : InstAlias<"int\t$3", (INT3)>;
let SchedRW = [WriteSystem] in {
def INT : Ii8<0xcd, RawFrm, (outs), (ins u8imm:$trap), "int\t$trap", def INT : Ii8<0xcd, RawFrm, (outs), (ins u8imm:$trap), "int\t$trap",
[(int_x86_int timm:$trap)]>; [(int_x86_int timm:$trap)]>;