[LLVMdev] Inserting annotations

Eli Friedman eli.friedman at gmail.com
Thu Mar 5 16:29:43 PST 2009


On Thu, Mar 5, 2009 at 4:17 PM, RAAD B <raad_7007 at yahoo.com> wrote:
> how can i insert annotations in IR ?

See http://llvm.org/docs/LangRef.html#int_annotation.

> I want actually write something like:
> CallInst *call = CallInst::Create( ??? , aBasicBlock);

It's illegal to take the address of a basic block in LLVM IR.

-Eli



More information about the llvm-dev mailing list