Displaying 1 result from an estimated 1 matches for "myimm5".
Did you mean:
myimm6
2018 May 15
1
[tablegen] anonymous def not fully instantiated
...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 by parameterizing the size
class myImmClass<int n>: Operand {
let ParserMatchClass = myAsmOperandClas...