Displaying 1 result from an estimated 1 matches for "myasmoperandclass".
Did you mean:
asmoperandclass
2018 May 15
1
[tablegen] anonymous def not fully instantiated
...n from the Operand class hierarchy of Target.td. I am trying to define a parameterized version of AsmOperandClass with a passed-in bit size.
// from Target.td
class AsmOperandClass {
string Name;
}
class Operand {
AsmOperandClass ParserMatchClass;
}
// A parameterized AsmOperandClass
class myAsmOperandClass<int n> : AsmOperandClass {
string Name = "Class" # n;
}
// A concrete instance
def myImm5Class: myAsmOperandClass<5>;
// Assign ParserMatchClass from the concrete instance: OK
def myImm5 : Operand {
let ParserMatchClass = myImm5Class;
}
// Now try to abstract the above...