llvm::getTypeForLLT

Get the type back from LLT. It won't be 100 percent accurate but returns an estimate of the type.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/Utils.h>

Type*
getTypeForLLT(
    LLT Ty,
    LLVMContext& C);

Return Value

An estimated IR Type for Ty.

Parameters

NameDescription
TyLow-level type to convert.
CLLVM context used to build the IR type.