[LLVMdev] instruction names

Óscar Fuentes ofv at wanadoo.es
Wed Sep 8 20:20:53 PDT 2010


"Ryan M. Lefever" <lefever at illinois.edu> writes:

> I want to be able to name all instructions for debugging purposes. 
> However, it appears that instructions that have a void type can not be 
> named.  Is there any good way to get around that limitation?

You can name objects that may be referenced elsewhere on the LLVM IR
listing. Instructions like StoreInst can not be referenced, so they do
not support naming.

Maybe `metadata' is useful for you:

http://llvm.org/docs/LangRef.html#metadata




More information about the llvm-dev mailing list