llvm::CastInst::CreateZExtOrBitCast

Create a zero-extension or bitcast cast instruction.

Synopsis

Declared in <llvm/IR/InstrTypes.h>

static
CastInst*
CreateZExtOrBitCast(
    Value* S,
    Type* Ty,
    Twine const& Name = "",
    InsertPosition InsertBefore = nullptr);

Return Value

The newly created cast instruction.

Parameters

NameDescription
SThe value to cast (operand 0).
TyThe destination type of the cast.
NameOptional name for the instruction.
InsertBeforeOptional insertion position.