[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
- Previous message: [llvm-dev] The meaning of DILexicalBlockFile
- Next message: [llvm-dev] Is ist a good idea to use lit and other test tools for non llvm projects?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [llvm-dev] The meaning of DILexicalBlockFile
- Next message: [llvm-dev] Is ist a good idea to use lit and other test tools for non llvm projects?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]