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.
Sean Silva
2013-Apr-09 16:51 UTC
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
On Tue, Apr 9, 2013 at 12:47 PM, Dong Chen <jameschennerd at gmail.com> wrote:> 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" ? > >http://llvm.org/docs/FAQ.html#what-api-do-i-use-to-store-a-value-to-one-of-the-virtual-registers-in-llvm-ir-s-ssa-representation -- Sean Silva -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130409/21c02fa1/attachment.html>
Sean Silva
2013-Apr-09 17:08 UTC
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
On Tue, Apr 9, 2013 at 12:47 PM, Dong Chen <jameschennerd at gmail.com> wrote:> 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" ? > >This may help you understand the situation a bit better: http://llvm.org/docs/FAQ.html#what-api-do-i-use-to-store-a-value-to-one-of-the-virtual-registers-in-llvm-ir-s-ssa-representation -- Sean Silva -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130409/dec40776/attachment.html>
Dong Chen
2013-Apr-09 17:11 UTC
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
hi Sean Silva: i really appriciate for your reply. but you konw that "dump()" instruction can print "%4" in the screen and each time print the same name "%4" not "%5" or "%6" for the same unnamed value. so there must be a way to determinate it. if "dump()" instruction can print it on the screen, can i find some way to store it in a char * variable? -- View this message in context: http://llvm.1065342.n5.nabble.com/get-the-identifies-of-the-unnamed-temporaries-from-the-instruction-of-LLVM-IR-tp56572p56591.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