[LLVMbugs] [Bug 1121] NEW: Should split libcodegen into libcodegen and libmachine

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jan 17 09:30:52 PST 2007


           Summary: Should split libcodegen into libcodegen and libmachine
           Product: libraries
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org

lib/Codegen/* contains two separate things: implementations of the Machine* classes (e.g. 
MachineBasicBlock) and a collection of code generator-related passes.

We should split this into two pieces: lib/CodeGen/Machine and lib/Codegen.  The reason for this is that 
individual targets (e.g. the PPC target) should depend (in a library dependence sense) on the machine bits, 
but not on the Codegen bits.  Currently, the various targets do depend on various machine code passes 
(e.g. the asmprinter) which causes large amounts of code to be linked in to apps that don't need it (e.g. lli 
gets asmprinter, machowriter, elfwriter, etc).  Once lib/CodeGen is split up, we can chase these 
dependencies down more easily and eliminate them.


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