Kyriakos Georgiou
2014-May-01 14:11 UTC
[LLVMdev] Emit the llvm-ir bytecode from my llvm pass
Hi, Is there anyway to emit the llvm-ir bytecode from inside my pass, into a file? I want the same format that I am getting by using the opt tool, so I can pass this file to the opt later. Kind Regards, Kyriakos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140501/ff9f469d/attachment.html>
On Thu, May 1, 2014 at 7:11 AM, Kyriakos Georgiou < Kyriakos.Georgiou at bristol.ac.uk> wrote:> > Hi, > > Is there anyway to emit the llvm-ir bytecode from inside my pass, into a > file? I want the same format that I am getting by using the opt tool, so I > can pass this file to the opt later. >You can use the llvm::WriteBitcodeToFile function. Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140501/01a867d2/attachment.html>