[llvm-dev] How to get the destination in a LoadInst
David Greene via llvm-dev
llvm-dev at lists.llvm.org
Thu Dec 13 07:39:56 PST 2018
"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. :)
More information about the llvm-dev