class LLT
Declaration
class LLT { /* full declaration omitted */ };
Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:39
Method Overview
- public LLT(llvm::MVT VT)
- public LLT()
- public LLT(bool isPointer, bool isVector, uint16_t NumElements, unsigned int SizeInBits, unsigned int AddressSpace)
- public llvm::LLT changeElementSize(unsigned int NewEltSize) const
- public llvm::LLT changeElementType(llvm::LLT NewEltTy) const
- public unsigned int getAddressSpace() const
- public llvm::LLT getElementType() const
- public uint16_t getNumElements() const
- public unsigned int getScalarSizeInBits() const
- public llvm::LLT getScalarType() const
- public unsigned int getSizeInBits() const
- public unsigned int getSizeInBytes() const
- public bool isByteSized() const
- public bool isPointer() const
- public bool isScalar() const
- public bool isValid() const
- public bool isVector() const
- public static llvm::LLT pointer(unsigned int AddressSpace, unsigned int SizeInBits)
- public void print(llvm::raw_ostream & OS) const
- public static llvm::LLT scalar(unsigned int SizeInBits)
- public static llvm::LLT scalarOrVector(uint16_t NumElements, unsigned int ScalarSize)
- public static llvm::LLT scalarOrVector(uint16_t NumElements, llvm::LLT ScalarTy)
- public static llvm::LLT vector(uint16_t NumElements, llvm::LLT ScalarTy)
- public static llvm::LLT vector(uint16_t NumElements, unsigned int ScalarSizeInBits)
Methods
¶LLT(llvm::MVT VT)
LLT(llvm::MVT VT)
Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:87
Parameters
- llvm::MVT VT
¶LLT()
LLT()
Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:85
¶LLT(bool isPointer,
bool isVector,
uint16_t NumElements,
unsigned int SizeInBits,
unsigned int AddressSpace)
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
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
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
unsigned int getAddressSpace() const
Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:157
¶llvm::LLT getElementType() const
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
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
unsigned int getScalarSizeInBits() const
Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:142
¶llvm::LLT getScalarType() const
llvm::LLT getScalarType() const
Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:120
¶unsigned int getSizeInBits() const
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
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
bool isByteSized() const
Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:140
¶bool isPointer() const
bool isPointer() const
Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:93
¶bool isScalar() const
bool isScalar() const
Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:91
¶bool isValid() const
bool isValid() const
Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:89
¶bool isVector() const
bool isVector() const
Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:95
¶static llvm::LLT pointer(
unsigned int AddressSpace,
unsigned int SizeInBits)
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
void print(llvm::raw_ostream& OS) const
Declared at: llvm/include/llvm/Support/LowLevelTypeImpl.h:175
Parameters
¶static llvm::LLT scalar(unsigned int SizeInBits)
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)
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)
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)
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)
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