Dong Chen
2013-Apr-09 09:56 UTC
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
hi, Duncan: thanks for your patience. i have tried it. using instuction: errs()<<i->getOperand(0); but it prints the address: someting like 0x1139700; i checked the defination of getOperand() is Value* getOperand( unsigned int i); so is there someting i missed? -- View this message in context: http://llvm.1065342.n5.nabble.com/get-the-identifies-of-the-unnamed-temporaries-from-the-instruction-of-LLVM-IR-tp56572p56579.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
Duncan Sands
2013-Apr-09 11:01 UTC
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
Hi, On 09/04/13 11:56, Dong Chen wrote:> hi, Duncan: > thanks for your patience. > i have tried it. > using instuction: errs()<<i->getOperand(0);errs()<<*i->getOperand(0); You can also use: i->getOperand(0)->dump(); Ciao, Duncan.> but it prints the address: someting like 0x1139700; > i checked the defination of getOperand() is Value* getOperand( unsigned int > i); > so is there someting i missed? > > > > -- > View this message in context: http://llvm.1065342.n5.nabble.com/get-the-identifies-of-the-unnamed-temporaries-from-the-instruction-of-LLVM-IR-tp56572p56579.html > Sent from the LLVM - Dev mailing list archive at Nabble.com. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Dong Chen
2013-Apr-09 16:47 UTC
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
hi, Duncan, thank you for your reply; instruction "i->getOperand(0)->dump()" may print the %4 in the screen, but how can i store it in a variable like char * oprand="%4" ? -- View this message in context: http://llvm.1065342.n5.nabble.com/get-the-identifies-of-the-unnamed-temporaries-from-the-instruction-of-LLVM-IR-tp56572p56588.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
Possibly Parallel Threads
- [LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
- [LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
- [LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
- [LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
- [LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR