[llvm-dev] Check if value operand to store instruction is defined in this instruction (original) (raw)

alexp via llvm-dev llvm-dev at lists.llvm.org
Fri Feb 1 10:44:04 PST 2019


The HasOneUse or HasNUsaes does not work for discriminating the two cases. I solved it via cast to Instruction or GlobalVariable; if both result in nullptr, its an inline defined value.

Alex



More information about the llvm-dev mailing list