[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
Honestly a bit yes but now all should be fine :)
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>
> > 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. :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev