[LLVMbugs] [Bug 4217] New: Eliminate the Annotable and Annotation classes by making MachineFunction a pass

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri May 15 10:19:54 PDT 2009


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

           Summary: Eliminate the Annotable and Annotation classes by making
                    MachineFunction a pass
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu


The only use of the Annotable and Annotation classes are for putting a
MachineFunction on Function.  This class is bad for a number of reasons and
should be removed.

The fix is to make MachineFunction be an analysis group that is provided by the
various instruction selectors and required/preserved by MachineFunctionPass. 
That way the lifetime of the MachineFunction is managed by PassMgr, not be
explicit code.


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