LLVM 22.0.0git
VectorTypeUtils.h File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Functions

Typellvm::toVectorTy (Type *Scalar, ElementCount EC)
 A helper function for converting Scalar types to vector types.
Typellvm::toVectorTy (Type *Scalar, unsigned VF)
LLVM_ABI Typellvm::toVectorizedStructTy (StructType *StructTy, ElementCount EC)
 A helper for converting structs of scalar types to structs of vector types.
LLVM_ABI Typellvm::toScalarizedStructTy (StructType *StructTy)
 A helper for converting structs of vector types to structs of scalar types.
LLVM_ABI bool llvm::isVectorizedStructTy (StructType *StructTy)
 Returns true if StructTy is an unpacked literal struct where all elements are vectors of matching element count.
LLVM_ABI bool llvm::canVectorizeStructTy (StructType *StructTy)
 Returns true if StructTy is an unpacked literal struct where all elements are scalars that can be used as vector element types.
Typellvm::toVectorizedTy (Type *Ty, ElementCount EC)
 A helper for converting to vectorized types.
Typellvm::toScalarizedTy (Type *Ty)
 A helper for converting vectorized types to scalarized (non-vector) types.
bool llvm::isVectorizedTy (Type *Ty)
 Returns true if Ty is a vector type or a struct of vector types where all vector types share the same VF.
bool llvm::canVectorizeTy (Type *Ty)
 Returns true if Ty is a valid vector element type, void, or an unpacked literal struct where all elements are valid vector element types.
ArrayRef< Type * > llvm::getContainedTypes (Type *const &Ty)
 Returns the types contained in Ty.
ElementCount llvm::getVectorizedTypeVF (Type *Ty)
 Returns the number of vector elements for a vectorized type.
bool llvm::isUnpackedStructLiteral (StructType *StructTy)