[llvm] Implement *BasicBlockPass::createPrinterPass method

Sergei Larin slarin at codeaurora.org
Fri Feb 8 13:16:40 PST 2013


Hello everyone,

  I am not precisely sure who owns this code (lib/IR/Pass.cpp ...sorry...),
and I am not sure why to this moment we did not have
BasicBlockPass::createPrinterPass() defined, but I got a nasty surprise when
trying to combine -mllvm -print-after-all with -mllvm -vectorize for
clang... 

   The implementation seemed straightforward, so I just decided to do it and
then ask for background later. So... If it is as harmless as I think it is,
please review and OK the patch. If it should not be done for some reason, or
should be implemented differently, please let me know.

Thanks a lot.

Sergei Larin

---
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by
The Linux Foundation

-------------- next part --------------
A non-text attachment was scrubbed...
Name: print_bb_pass.patch
Type: application/octet-stream
Size: 4883 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130208/c687bcfc/attachment.obj>


More information about the llvm-commits mailing list