[LLVMdev] Operand, instruction
help__me_please
krishnadhan at cse.iitb.ac.in
Sun Mar 28 20:19:17 PDT 2010
Thanks for the reply.
My problem is solved.
Thanks once again.
Duncan Sands wrote:
>
> Hi,
>
>> Can anyone tell how to get the result name or instruction name of all
>> instruction? For example if the instruction is "x=add y,z", here i need
>> "x".
>> Using getName(), i am getting some instructions result name, but llvm
>> produces some instruction like "%0=add i32 tmp, 1", here getName() shows
>> empty string as result name.
>> So please help.
>
> as you have noticed, names are optional: instructions may not have names.
> That said, you can give names to all instructions by running the instnamer
> pass.
>
> Ciao,
>
> Duncan.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
--
View this message in context: http://old.nabble.com/Operand%2C-instruction-tp21961718p28064599.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
More information about the llvm-dev
mailing list