[llvm-dev] How to get the possible predecessors for a PHINode

Alberto Barbaro via llvm-dev llvm-dev at lists.llvm.org
Mon Mar 18 11:34:57 PDT 2019


Hi all,
I have encountered the following instruction:

%.0.i = phi i8* [ %9, %8 ], [ %11, %10 ]

How can I get the %8 and %10?

I'm using http://llvm.org/doxygen/classllvm_1_1PHINode.html as a reference
but I cannot understand how to do that.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190318/51ad402c/attachment.html>


More information about the llvm-dev mailing list