ΒΆllvm::Constant* ConstantFoldLoadThroughBitcast(
    llvm::Constant* C,
    llvm::Type* DestTy,
    const llvm::DataLayout& DL)

Description

ConstantFoldLoadThroughBitcast - try to cast constant to destination type returning null if unsuccessful. Can cast pointer to pointer or pointer to integer and vice versa if their sizes are equal.

Declared at: llvm/include/llvm/Analysis/ConstantFolding.h:186

Parameters

llvm::Constant* C
llvm::Type* DestTy
const llvm::DataLayout& DL