LLVM API Documentation
#include <DerivedTypes.h>


Public Member Functions | |
| unsigned | getNumElements () const |
| Return the number of elements in the Vector type. | |
| unsigned | getBitWidth () const |
| Return the number of bits in the Vector type. | |
| virtual void | refineAbstractType (const DerivedType *OldTy, const Type *NewTy) |
| virtual void | typeBecameConcrete (const DerivedType *AbsTy) |
Static Public Member Functions | |
| static VectorType * | get (const Type *ElementType, unsigned NumElements) |
| static VectorType * | getInteger (const VectorType *VTy) |
| static VectorType * | getExtendedElementVectorType (const VectorType *VTy) |
| static VectorType * | getTruncatedElementVectorType (const VectorType *VTy) |
| static bool | classof (const VectorType *) |
| static bool | classof (const Type *T) |
| Methods for support type inquiry through isa, cast, and dyn_cast:. | |
Friends | |
| class | TypeMap< VectorValType, VectorType > |
Definition at line 349 of file DerivedTypes.h.
| VectorType * VectorType::get | ( | const Type * | ElementType, | |
| unsigned | NumElements | |||
| ) | [static] |
VectorType::get - This static method is the primary way to construct an VectorType
Definition at line 1194 of file Type.cpp.
References DOUT.
Referenced by llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::ConstantVector::get(), getExtendedElementVectorType(), getInteger(), getTruncatedElementVectorType(), llvm::MVT::getTypeForMVT(), and llvm::ConstantExpr::getVFCmp().
| static VectorType* llvm::VectorType::getInteger | ( | const VectorType * | VTy | ) | [inline, static] |
VectorType::getInteger - This static method gets a VectorType with the same number of elements as the input type, and the element type is an integer type of the same width as the input element type.
Definition at line 366 of file DerivedTypes.h.
References get(), llvm::IntegerType::get(), llvm::SequentialType::getElementType(), getNumElements(), and llvm::Type::getPrimitiveSizeInBits().
Referenced by llvm::ConstantFoldCompareInstruction().
| static VectorType* llvm::VectorType::getExtendedElementVectorType | ( | const VectorType * | VTy | ) | [inline, static] |
VectorType::getExtendedElementVectorType - This static method is like getInteger except that the element types are twice as wide as the elements in the input type.
Definition at line 376 of file DerivedTypes.h.
References get(), llvm::IntegerType::get(), llvm::SequentialType::getElementType(), getNumElements(), and llvm::Type::getPrimitiveSizeInBits().
| static VectorType* llvm::VectorType::getTruncatedElementVectorType | ( | const VectorType * | VTy | ) | [inline, static] |
VectorType::getTruncatedElementVectorType - This static method is like getInteger except that the element types are half as wide as the elements in the input type.
Definition at line 386 of file DerivedTypes.h.
References get(), llvm::IntegerType::get(), llvm::SequentialType::getElementType(), getNumElements(), and llvm::Type::getPrimitiveSizeInBits().
| unsigned llvm::VectorType::getNumElements | ( | ) | const [inline] |
Return the number of elements in the Vector type.
Definition at line 393 of file DerivedTypes.h.
Referenced by llvm::SelectInst::areInvalidOperands(), BitCastConstantVector(), calcTypeName(), EvalVectorOp(), FindScalarElement(), llvm::ConstantVector::getAllOnesValue(), getExtendedElementVectorType(), getInteger(), llvm::MVT::getMVT(), getShuffleMask(), getTruncatedElementVectorType(), getTypeDescription(), llvm::SelectionDAGLowering::getValue(), llvm::Constant::getVectorElements(), llvm::ConstantExpr::getVFCmp(), llvm::ConstantExpr::getVICmp(), llvm::VectorValType::hashTypeStructure(), RecursiveResolveTypesI(), TypesEqual(), and WriteTypeTable().
| unsigned llvm::VectorType::getBitWidth | ( | ) | const [inline] |
Return the number of bits in the Vector type.
Definition at line 396 of file DerivedTypes.h.
Referenced by MergeInType().
| void VectorType::refineAbstractType | ( | const DerivedType * | OldTy, | |
| const Type * | NewTy | |||
| ) | [virtual] |
refineAbstractType - The callback method invoked when an abstract type is resolved to another type. An object must override this method to update its internal state to reference NewType instead of OldType.
Reimplemented from llvm::Type.
| void VectorType::typeBecameConcrete | ( | const DerivedType * | AbsTy | ) | [virtual] |
The other case which AbstractTypeUsers must be aware of is when a type makes the transition from being abstract (where it has clients on it's AbstractTypeUsers list) to concrete (where it does not). This method notifies ATU's when this occurs for a type.
Reimplemented from llvm::Type.
| static bool llvm::VectorType::classof | ( | const VectorType * | ) | [inline, static] |
Definition at line 405 of file DerivedTypes.h.
| static bool llvm::VectorType::classof | ( | const Type * | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::SequentialType.
Definition at line 406 of file DerivedTypes.h.
References llvm::Type::getTypeID(), and llvm::Type::VectorTyID.
friend class TypeMap< VectorValType, VectorType > [friend] |
Definition at line 350 of file DerivedTypes.h.
This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.