[LLVMdev] Extracting libmachine from libcodegen (bug 1121)
Andrew Trick
atrick at apple.com
Tue Nov 5 18:20:18 PST 2013
On Oct 27, 2013, at 10:11 PM, Nitish B <bestofnithish at gmail.com> wrote:
> Hi,
> I did the Pass ID workaround by providing Passes.h in the
> include/llvm/Machine. But the question which is holding me up is that, as
> Ken Dyck was kind enough to point out, what should be done to the dependency
> on libAnalysis? The Machine passes are not only dependent on Passes class
> but also on others such as the ConstantFolding.h. Is it a possible solution
> to break this dependency or carry this dependency to the Machine library as
> well?
Ideally, libLLVMMachine should not depend on libLLVMAnalysis. I can understand if you need to do that as an intermediate step. ConstantFolding is not a good reason to do that though. What do people think about moving ConstantFolding into libLLVMCore? Makes sense to me.
-Andy
More information about the llvm-dev
mailing list