[LLVMdev] Custom pass that runs before EmitStartOfAsmFile()?

Yang, Cheng-Chih Cheng-Chih.Yang at amd.com
Tue Sep 30 08:05:47 PDT 2014


Hi all,

I'm trying to write a custom module-level pass that runs before AsmPrinter::EmitStartOfAsmFile(), since I'd like to have some processed information available once entering this function.

Looking through "Writing an LLVM pass" documentation, it's not clear to me if this is possible. I've also tried putting the pass in different orders (addPreISel, addIRPasses, and etc.). Am I missing something or this is just not possible to do? Any help is appreciated.

Thanks,
Cheng-Chih


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140930/78e83ad1/attachment.html>


More information about the llvm-dev mailing list