Skip to content

Commit d99b043

Browse files
authored
[TableGen] Move hasCompleteDecoder bit from Operand to DAGOperand (#153165)
The bit works with any kind of instruction operands, not only `Operand`. Move it to the base class of all operands so that targets are aware of it and can use "let hasCompleteDecoder = ..." in records derived from RegisterClass/RegisterOperand.
1 parent e2bbd6d commit d99b043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Target/Target.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ class RegisterWithSubRegs<string n, list<Register> subregs> : Register<n> {
250250
class DAGOperand {
251251
string OperandNamespace = "MCOI";
252252
string DecoderMethod = "";
253+
bit hasCompleteDecoder = true;
253254
}
254255

255256
// RegisterClass - Now that all of the registers are defined, and aliases
@@ -1003,7 +1004,6 @@ class Operand<ValueType ty> : DAGOperand {
10031004
ValueType Type = ty;
10041005
string PrintMethod = "printOperand";
10051006
string EncoderMethod = "";
1006-
bit hasCompleteDecoder = true;
10071007
string OperandType = "OPERAND_UNKNOWN";
10081008
dag MIOperandInfo = (ops);
10091009

0 commit comments

Comments
 (0)