search for: myimmclass

Displaying 1 result from an estimated 1 matches for "myimmclass".

Did you mean: myimm5class
2018 May 15
1
[tablegen] anonymous def not fully instantiated
...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 = 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 t...