Displaying 2 results from an estimated 2 matches for "6dee2e5c".
2013 Jan 28
0
[LLVMdev] Value* to Instruction*/LoadInst* casting
...xtract the Load instruction from
> `icmpInstrArray[i]->getOperand(0)`?
>
> Thank you a lot !
--
Best regards,
Alexandru Ionut Diaconescu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130128/6dee2e5c/attachment.html>
2013 Jan 28
5
[LLVMdev] Value* to Instruction*/LoadInst* casting
Hello everyone,
Can you please tell me if it is possible in LLVM to cast a `Value*` to an
`Instruction*/LoadInst*` if for example `isa<LoadInst>(MyValue)` is true?
In my particular piece of code:
Value* V1 = icmpInstrArray[i]->getOperand(0);
Value* V2 = icmpInstrArray[i]->getOperand(1);
if (isa<LoadInst>(V1) || isa<LoadInst>(V2)){
...