Sometimes, in LLVM-IR an instruction is ‘embedded’ inside of another instruction e.g:
Here, a gep instruction has been embedded inside of a load instruction. How can I access the operands of this gep instruction?
Thanks
Sometimes, in LLVM-IR an instruction is ‘embedded’ inside of another instruction e.g:
LoadInst has a getPointerOperand() method. If you believe that the pointer is a gep then that should give you access to the gep.
I have tried using this approach:
The second dyn_cast always return Null…