http://llvm.org/bugs/show_bug.cgi?id=8330
Summary: tblgen isn't sufficiently meta
Product: tools
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: TableGen
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
This crashes tblgen:
------
class Or4<bits<8> Val> {
bits<8> V = {Val{7}, Val{6}, Val{5}, Val{4}, Val{3}, 1, Val{1}, Val{0} };
}
class Whatev<bits<8> x>;
multiclass X<bits<8> BaseOpc> {
def bar : Whatev<Or4<BaseOpc>.V >;
}
defm a : X<4>;
------
The problem is that tblgen needs to complete the instantiation of the anonymous
def "Or4<BaseOpc>", and when it does this there are still symbolic references
to BaseOpC. TableGen doesn't have a way to represent this and helpfully
responds by crashing.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs