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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to