15 return Ctx.getType(LLVMTy->getScalarType());
49 return cast<PointerType>(ElementType->getContext().getType(
54 return cast<PointerType>(
59 return cast<ArrayType>(ElementType->getContext().getType(
66 LLVMElements.
reserve(Elements.size());
67 for (
Type *Elm : Elements)
69 return cast<StructType>(
74 return cast<VectorType>(ElementType->getContext().getType(
86 return cast<VectorType>(
88 cast<llvm::VectorType>(VTy->
LLVMTy))));
91 return cast<VectorType>(
93 cast<llvm::VectorType>(VTy->
LLVMTy))));
97 return cast<VectorType>(
99 cast<llvm::VectorType>(VTy->
LLVMTy), NumSubdivs)));
102 return cast<VectorType>(
104 cast<llvm::VectorType>(VTy->
LLVMTy))));
107 return cast<VectorType>(
109 cast<llvm::VectorType>(VTy->
LLVMTy))));
116 return cast<FixedVectorType>(ElementType->getContext().getType(
122 return cast<ScalableVectorType>(ElementType->getContext().getType(
127 return cast<IntegerType>(
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
static ArrayType * get(Type *ElementType, uint64_t NumElements)
This static method is the primary way to construct an ArrayType.
Class to represent fixed width SIMD vectors.
static FixedVectorType * get(Type *ElementType, unsigned NumElts)
Class to represent integer types.
static IntegerType * get(LLVMContext &C, unsigned NumBits)
This static method is the primary way of constructing an IntegerType.
static PointerType * get(Type *ElementType, unsigned AddressSpace)
This constructs a pointer to an object of the specified type in a numbered address space.
Class to represent scalable SIMD vectors.
static ScalableVectorType * get(Type *ElementType, unsigned MinNumElts)
void reserve(size_type N)
void push_back(const T &Elt)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
static StructType * get(LLVMContext &Context, ArrayRef< Type * > Elements, bool isPacked=false)
This static method is the primary way to create a literal StructType.
The instances of the Type class are immutable: once they are created, they are never changed.
static Type * getDoubleTy(LLVMContext &C)
static IntegerType * getInt1Ty(LLVMContext &C)
static IntegerType * getInt16Ty(LLVMContext &C)
static IntegerType * getInt8Ty(LLVMContext &C)
static IntegerType * getInt32Ty(LLVMContext &C)
static IntegerType * getInt64Ty(LLVMContext &C)
static Type * getFloatTy(LLVMContext &C)
Type * getScalarType() const
If this is a vector type, return the element type, otherwise return 'this'.
static VectorType * getHalfElementsVectorType(VectorType *VTy)
This static method returns a VectorType with half as many elements as the input type and the same ele...
static VectorType * getExtendedElementVectorType(VectorType *VTy)
This static method is like getInteger except that the element types are twice as wide as the elements...
static VectorType * getSubdividedVectorType(VectorType *VTy, int NumSubdivs)
static VectorType * getInteger(VectorType *VTy)
This static method gets a VectorType with the same number of elements as the input type,...
static VectorType * get(Type *ElementType, ElementCount EC)
This static method is the primary way to construct an VectorType.
static VectorType * getTruncatedElementVectorType(VectorType *VTy)
static bool isValidElementType(Type *ElemTy)
Return true if the specified type is valid as a element type.
static VectorType * getDoubleElementsVectorType(VectorType *VTy)
This static method returns a VectorType with twice as many elements as the input type and the same el...
Type * getElementType() const
This class implements an extremely fast bulk output stream that can only output to a stream.
Type * getType(llvm::Type *LLVMTy)
Just like llvm::Type these are immutable, unique, never get freed and can only be created via static ...
void dumpOS(raw_ostream &OS)
Context & getContext() const
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.