This is an auto‐upgrade for bitcast constant expression between pointers with different address spaces: the instruction is replaced by a pair ptrtoint+inttoptr.

Synopsis

Declared in <llvm/IR/AutoUpgrade.h>

Constant*
UpgradeBitCastExpr(
    unsigned int Opc,
    Constant* C,
    Type* DestTy);

Return Value

The upgraded constant expression, or null if no upgrade is needed.

Parameters

Name

Description

Opc

Opcode of the cast being considered.

C

Source constant of the bitcast.

DestTy

Destination type of the bitcast.

Created with MrDocs