class LLT

Declaration

class LLT { /* full declaration omitted */ };

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:39

Method Overview

Methods

LLT(llvm::MVT VT)

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:87

Parameters

llvm::MVT VT

LLT()

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:85

LLT(bool isPointer,
    bool isVector,
    uint16_t NumElements,
    unsigned int SizeInBits,
    unsigned int AddressSpace)

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:81

Parameters

bool isPointer
bool isVector
uint16_t NumElements
unsigned int SizeInBits
unsigned int AddressSpace

llvm::LLT changeElementSize(
    unsigned int NewEltSize) const

Description

If this type is a vector, return a vector with the same number of elements but the new element size. Otherwise, return the new element type. Invalid for pointer types. For pointer types, use changeElementType.

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:133

Parameters

unsigned int NewEltSize

llvm::LLT changeElementType(
    llvm::LLT NewEltTy) const

Description

If this type is a vector, return a vector with the same number of elements but the new element type. Otherwise, return the new element type.

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:126

Parameters

llvm::LLT NewEltTy

unsigned int getAddressSpace() const

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:157

llvm::LLT getElementType() const

Description

Returns the vector's element type. Only valid for vector types.

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:167

uint16_t getNumElements() const

Description

Returns the number of elements in a vector LLT. Must only be called on vector types.

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:99

unsigned int getScalarSizeInBits() const

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:142

llvm::LLT getScalarType() const

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:120

unsigned int getSizeInBits() const

Description

Returns the total size of the type. Must only be called on sized types.

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:108

unsigned int getSizeInBytes() const

Description

Returns the total size of the type in bytes, i.e. number of whole bytes needed to represent the size in bits. Must only be called on sized types.

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:116

bool isByteSized() const

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:140

bool isPointer() const

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:93

bool isScalar() const

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:91

bool isValid() const

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:89

bool isVector() const

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:95

static llvm::LLT pointer(
    unsigned int AddressSpace,
    unsigned int SizeInBits)

Description

Get a low-level pointer in the given address space.

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:49

Parameters

unsigned int AddressSpace
unsigned int SizeInBits

void print(llvm::raw_ostream& OS) const

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:175

Parameters

llvm::raw_ostream& OS

static llvm::LLT scalar(unsigned int SizeInBits)

Description

Get a low-level scalar or aggregate "bag of bits".

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:42

Parameters

unsigned int SizeInBits

static llvm::LLT scalarOrVector(
    uint16_t NumElements,
    unsigned int ScalarSize)

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:77

Parameters

uint16_t NumElements
unsigned int ScalarSize

static llvm::LLT scalarOrVector(
    uint16_t NumElements,
    llvm::LLT ScalarTy)

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:73

Parameters

uint16_t NumElements
llvm::LLT ScalarTy

static llvm::LLT vector(uint16_t NumElements,
                        llvm::LLT ScalarTy)

Description

Get a low-level vector of some number of elements and element type.

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:65

Parameters

uint16_t NumElements
llvm::LLT ScalarTy

static llvm::LLT vector(
    uint16_t NumElements,
    unsigned int ScalarSizeInBits)

Description

Get a low-level vector of some number of elements and element width.\p NumElements must be at least 2.

Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:57

Parameters

uint16_t NumElements
unsigned int ScalarSizeInBits