Create a ZExt or Trunc from the integer value V to DestTy. Return the value untouched if the type of V is already DestTy.

Synopsis

Declared in <llvm/IR/IRBuilder.h>

Value*
CreateZExtOrTrunc(
    Value* V,
    Type* DestTy,
    Twine const& Name = "");

Return Value

The created ZExt or Trunc from the integer value V to DestTy.

Parameters

Name

Description

V

Input value.

DestTy

Destination type of the cast.

Name

Name of the new instruction or value.

Created with MrDocs