This is an auto-upgrade for bitcast between pointers with different address spaces: the instruction is replaced by a pair ptrtoint+inttoptr.
Declared in <llvm/IR/AutoUpgrade.h>
Instruction*
UpgradeBitCastInst(
unsigned int Opc,
Value* V,
Type* DestTy,
Instruction*& Temp);
The inttoptr instruction when an upgrade is performed, or null.
| Name | Description |
|---|---|
| Opc | Opcode of the cast being considered. |
| V | Source value of the bitcast. |
| DestTy | Destination type of the bitcast. |
| Temp | Set to the ptrtoint instruction when an upgrade is performed. |