[llvm] 264612e - [Target] Change PATCHABLE_EVENT_CALL/PATCHABLE_TYPED_EVENT_CALL to use unknown instead of i8imm/i16imm/i32imm in its definition.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 30 00:36:26 PDT 2019
Author: Craig Topper
Date: 2019-10-30T00:36:01-07:00
New Revision: 264612e13833ef4018cd3b859b1ea2fe123a5d99
URL: https://github.com/llvm/llvm-project/commit/264612e13833ef4018cd3b859b1ea2fe123a5d99
DIFF: https://github.com/llvm/llvm-project/commit/264612e13833ef4018cd3b859b1ea2fe123a5d99.diff
LOG: [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.
Added:
Modified:
llvm/include/llvm/Target/Target.td
Removed:
################################################################################
diff --git a/llvm/include/llvm/Target/Target.td b/llvm/include/llvm/Target/Target.td
index dd8679661b9a..c68977cf549e 100644
--- a/llvm/include/llvm/Target/Target.td
+++ b/llvm/include/llvm/Target/Target.td
@@ -1210,7 +1210,7 @@ def PATCHABLE_TAIL_CALL : StandardPseudoInstruction {
}
def PATCHABLE_EVENT_CALL : StandardPseudoInstruction {
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 usesCustomInserter = 1;
let isCall = 1;
@@ -1220,7 +1220,7 @@ def PATCHABLE_EVENT_CALL : StandardPseudoInstruction {
}
def PATCHABLE_TYPED_EVENT_CALL : StandardPseudoInstruction {
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 usesCustomInserter = 1;
let isCall = 1;
More information about the llvm-commits
mailing list