[LLVMdev] RFC: Separate machine IR from lib/CodeGen into lib/MIR

Alex L arphaman at gmail.com
Tue May 26 09:46:29 PDT 2015


Hi all,

The CodeGen library is a big bag of interdependent bits. This caused
a circular dependency in the MIR serialization commit (r237954), which got
reverted in r238007.

I propose separating the machine IR out of CodeGen and into its own
MIR library, living at lib/MIR. This touches every target but it's mostly a
mechanical change that renames the header files, although a couple of
pre-rename
commits are needed to decouple several things in CodeGen. I've attached a
proof
of concept patch that renames the files and applies cleanly to r238038.

The MIR serialization code will go under the new MIR library and not under
CodeGen which will break the dependency. The CodeGen library will link MIR
automatically so the build files for tools that link with CodeGen won't
have to
be changed.

Thanks for reading,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150526/2c7b86e3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mir-move.patch
Type: application/octet-stream
Size: 293228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150526/2c7b86e3/attachment.obj>


More information about the llvm-dev mailing list