llvm::Type::getPrimitiveType

Return a type based on an identifier.

Synopsis

Declared in <llvm/IR/Type.h>

static
Type*
getPrimitiveType(
    LLVMContext& C,
    TypeID IDNumber);

Return Value

The uniqued primitive type for IDNumber, or null if invalid.

Parameters

NameDescription
CLLVM context in which to unique the type.
IDNumberTypeID of the primitive type to return.