[PATCH] Move CodeGenPrepare into lib/CodeGen

Quentin Colombet qcolombet at apple.com
Wed Feb 19 17:52:29 PST 2014


On Feb 19, 2014, at 5:47 PM, Chandler Carruth <chandlerc at google.com> wrote:

> 
> On Wed, Feb 19, 2014 at 5:42 PM, Quentin Colombet <qcolombet at apple.com> wrote:
> As one can notice (makefile, CMakeLists) the patch introduces a dependency on libLLVMCodeGen for both opt and bugpoint because of that.
> 
> The dependency for bugpoint could be avoid if we were less aggressive in LinkAllPasses.h.
> 
> Would it be possible to stop adding this pass from opt and instead have llc (and the target machine) add the pass? I don't think we have any real reason to want to see CGP output from opt…
Well… I do :).

CGP is IR to IR pass and I do prefer write unitary test that check against IR =.
More over, CGP is doing some stuff even when TargetLowering is not available as demonstrated in some tests.

-Quentin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140219/51578664/attachment.html>


More information about the llvm-commits mailing list