[LLVMbugs] [Bug 1001] NEW: DAGISelEmitter not looking up instruction namespace accurately.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Nov 10 22:28:55 PST 2006


           Summary: DAGISelEmitter not looking up instruction namespace
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: TableGen
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: patil.nikhil at gmail.com

I was trying to write my own simple LLVM backend for my own simple ISA when I 
ran into the following error message:

MCGenDAGISel.inc: In member function 
MCGenDAGISel.inc:463: error: 'INSTRUCTION_LIST_END' is not a member of 

My target description had only one instruction NOP. The problem disappears when 
I change NOP to ADD. In fact anything *alphabetically* before INLINEASM is 
okay. (INLINEASM & PHINODE are in namespace TargetInstrInfo.) I have traced 
down the problem to utils/TableGen/DAGISelEmitter.cpp:3390, where we only look 
at the first instruction in the list of all instructions. So if there happen to 
be no instructions alphabetically before INLINEASM, we get screwed.

Please let me know if you need any more information :)

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list