[llvm-dev] How to get the destination in a LoadInst

Alberto Barbaro via llvm-dev llvm-dev at lists.llvm.org
Thu Dec 13 10:47:48 PST 2018


Hi,
Honestly a bit yes but now all should be fine :)

Thanks

On Thu, Dec 13, 2018, 15:39 David Greene <dag at cray.com wrote:

> "Doerfert, Johannes Rudolf via llvm-dev" <llvm-dev at lists.llvm.org>
> writes:
>
> > The LoadInst is %5. I'm not sure what you mean by reference though.
>
> This is a common misunderstanding, one that I think is encouraged by the
> textual form of IR.  "%5 = load" makes it looks like %5 is a destination
> operand in LoadInst.  LLVM IR looks like assembly and in (most) assembly
> syntax, destinations are instruction operands.
>
> Something like "%5 -> load" might have made things more clear, but of
> course it's too late for that.  :)
>
>                             -David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181213/cada17f8/attachment.html>


More information about the llvm-dev mailing list