Skip to content

Should split libcodegen into libcodegen and libmachine #1493

@lattner

Description

@lattner
Bugzilla Link 1121
Version 1.0
OS All
CC @asl

Extended Description

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.

-Chris

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions