llvm::Type::getScalarTy

Return the LLVM scalar type corresponding to a C++ scalar type ScalarTy.

Synopsis

Declared in <llvm/IR/Type.h>

template<typename ScalarTy>
static
Type*
getScalarTy(LLVMContext& C);

Return Value

The LLVM type matching C++ scalar type ScalarTy.

Parameters

NameDescription
CLLVM context in which to unique the type.