[Target] Change PATCHABLE_EVENT_CALL/PATCHABLE_TYPED_EVENT_CALL to use unknown instead of i8imm/i16imm/i32imm in its definition.

These instructions don't use immediates, they use registers. But
the register class needed is target specific. So just use unknown.
This commit is contained in:
Craig Topper 2019-10-30 00:35:20 -07:00
parent bbe2fcbd15
commit 264612e138
1 changed files with 2 additions and 2 deletions

View File

@ -1210,7 +1210,7 @@ def PATCHABLE_TAIL_CALL : StandardPseudoInstruction {
} }
def PATCHABLE_EVENT_CALL : StandardPseudoInstruction { def PATCHABLE_EVENT_CALL : StandardPseudoInstruction {
let OutOperandList = (outs); let OutOperandList = (outs);
let InOperandList = (ins ptr_rc:$event, i8imm:$size); let InOperandList = (ins ptr_rc:$event, unknown:$size);
let AsmString = "# XRay Custom Event Log."; let AsmString = "# XRay Custom Event Log.";
let usesCustomInserter = 1; let usesCustomInserter = 1;
let isCall = 1; let isCall = 1;
@ -1220,7 +1220,7 @@ def PATCHABLE_EVENT_CALL : StandardPseudoInstruction {
} }
def PATCHABLE_TYPED_EVENT_CALL : StandardPseudoInstruction { def PATCHABLE_TYPED_EVENT_CALL : StandardPseudoInstruction {
let OutOperandList = (outs); let OutOperandList = (outs);
let InOperandList = (ins i16imm:$type, ptr_rc:$event, i32imm:$size); let InOperandList = (ins unknown:$type, ptr_rc:$event, unknown:$size);
let AsmString = "# XRay Typed Event Log."; let AsmString = "# XRay Typed Event Log.";
let usesCustomInserter = 1; let usesCustomInserter = 1;
let isCall = 1; let isCall = 1;