[LLVMbugs] [Bug 8330] New: tblgen isn't sufficiently meta

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 7 11:32:57 PDT 2010


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: unassignedbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list