llvm::ConstantExpr::getBitCast

Return a bitcast of C to type Ty.

Synopsis

Declared in <llvm/IR/Constants.h>

static
Constant*
getBitCast(
    Constant* C,
    Type* Ty,
    bool OnlyIfReduced = false);

Return Value

A bitcast of C to type Ty.

Parameters

NameDescription
CThe constant to bitcast.
TyThe destination type.
OnlyIfReducedIf true, return null unless the expression reduces.