[LLVMbugs] [Bug 14267] New: TargetLowering operation legality should be largely inferred from .td files

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 5 17:41:35 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14267

             Bug #: 14267
           Summary: TargetLowering operation legality should be largely
                    inferred from .td files
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: grosbach at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


In a thread on llvm-commits, Chris made the comment, "I really regret not
having the TargetLowering operation legality tables not be inferred from the
.td files from the get-go." That got me thinking about it a bit, and that seems
a very doable refactorization.

Every target has a long list of setOperationAction() calls in the constructor
for the TargetLowering. The .td files have a lot of information about what
operations are legal for what types from the instruction selection patterns. If
a target only marked explicitly those actions which are required to be Custom,
everything else could default to Expand, and a lot of error-prone boilerplate
code in the constructor would go away.

-- 
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