[LLVMdev] Emit the llvm-ir bytecode from my llvm pass
Eli Bendersky
eliben at google.com
Thu May 1 08:34:50 PDT 2014
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>
More information about the llvm-dev
mailing list