Displaying 1 result from an estimated 1 matches for "myimm6".
Did you mean:
myimm5
2018 May 15
1
[tablegen] anonymous def not fully instantiated
...5>;
// Assign ParserMatchClass from the concrete instance: OK
def myImm5 : Operand {
let ParserMatchClass = myImm5Class;
}
// Now try to abstract the above by parameterizing the size
class myImmClass<int n>: Operand {
let ParserMatchClass = myAsmOperandClass<n>;
}
// Fails
def myImm6 : myImmClass<6>;
On the real .td file from which this was taken, tablegen complains that the Name field of myImm6's ParserMatchClass is not a string. The reason is revealed by looking at the raw output from tablegen:
------------- Defs -----------------
def myImm5Class { // AsmOpe...