Displaying 1 result from an estimated 1 matches for "bitcastrh".
Did you mean:
bitcastrhs
2011 Oct 12
1
[LLVMdev] getting object from BitCastInst?
...case of BitCastInst my dump shows "%ptr.addr = alloca i8*,
align 8", I would like to isolate this just to "ptr". Ive tried doing
another dyn_cast to AllocaInt, but I couldn't find any relevant
methods. How Can I do this?
BitCastInst *bitcastRHS =
dyn_cast<BitCastInst>(rhs);
if(bitcastRHS != NULL) {
LoadInst *load = dyn_cast<LoadInst>(bitcastRHS->getOperand(0));
if(load != NULL) {
rhs = load->getPointerOperand();
rhs->dump();
}
}