[llvm-dev] Writing an LLVM Pass that depends on mem2reg
Stanislav Manilov via llvm-dev
llvm-dev at lists.llvm.org
Thu Feb 11 09:49:59 PST 2016
I am used to specifying dependence on other LLVM passes in the
`getAnalysisUsage(AnalysisUsage &)` method of my pass. However, it doesn't
seem that there is a header file that exposes the `mem2reg` pass - it is
implemented in `Mem2Reg.cpp` as a wrapper.
Is there an easy way to reuse this pass, or should I, in essence, duplicate
`Mem2Reg.cpp` in my project?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev