<div dir="ltr"><div>Hi all,</div><div><br></div><div>The CodeGen library is a big bag of interdependent bits. This caused</div><div>a circular dependency in the MIR serialization commit (r237954), which got</div><div>reverted in r238007.</div><div><br></div><div>I propose separating the machine IR out of CodeGen and into its own</div><div>MIR library, living at lib/MIR. This touches every target but it's mostly a</div><div>mechanical change that renames the header files, although a couple of pre-rename</div><div>commits are needed to decouple several things in CodeGen. I've attached a proof</div><div>of concept patch that renames the files and applies cleanly to r238038.</div><div><br></div><div>The MIR serialization code will go under the new MIR library and not under</div><div>CodeGen which will break the dependency. The CodeGen library will link MIR</div><div>automatically so the build files for tools that link with CodeGen won't have to</div><div>be changed.</div><div><br></div><div>Thanks for reading,</div><div>Alex</div><div><br></div></div>