Return the value for an integer or pointer constant, or a vector thereof, with the given scalar value.

Synopsis

Declared in <llvm/IR/Constant.h>

static
Constant*
getIntegerValue(
    Type* Ty,
    APInt const& V);

Return Value

The constant with the given integer value.

Parameters

Name

Description

Ty

The integer, pointer, or vector type of the result.

V

The scalar integer value to splat or use.

Created with MrDocs