Hui Zhang via llvm-dev
2015-Aug-21 02:12 UTC
[llvm-dev] how to get the instruction from the operand
Hello,
for example, I have the llvm bitcode:
%1 = getelementptr inbounds %People %localPeople, i32 0, i32 1
store i32* %1 i32** %temp
if I have the pointer to the temp, which is 'Value *temp', how do I get
'Value *localPeople' ? Is there any way to back traverse the instruction
?
thanks !
--
Best regards
Hui Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20150820/8f92864d/attachment.html>