LLVM API Documentation
#include <DerivedTypes.h>
Public Member Functions | |
| uint64_t | getNumElements () const |
| virtual void | refineAbstractType (const DerivedType *OldTy, const Type *NewTy) |
| virtual void | typeBecameConcrete (const DerivedType *AbsTy) |
Static Public Member Functions | |
| static ArrayType * | get (const Type *ElementType, uint64_t NumElements) |
| static bool | isValidElementType (const Type *ElemTy) |
| static bool | classof (const ArrayType *) |
| static bool | classof (const Type *T) |
| Methods for support type inquiry through isa, cast, and dyn_cast:. | |
Friends | |
| class | TypeMap< ArrayValType, ArrayType > |
Definition at line 356 of file DerivedTypes.h.
ArrayType::get - This static method is the primary way to construct an ArrayType
Definition at line 808 of file Type.cpp.
References llvm::LLVMContextImpl::ArrayTypes, DOUT, llvm::Type::getContext(), isValidElementType(), L, llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::TypeMapLock.
Referenced by llvm::TypeBuilder< T[], cross >::get(), llvm::TypeBuilder< T[N], cross >::get(), llvm::ConstantArray::get(), llvm::DIFactory::GetOrCreateArray(), and OptimizeGlobalAddressOfMalloc().
isValidElementType - Return true if the specified type is valid as a element type.
Definition at line 830 of file Type.cpp.
References llvm::Type::getContext(), llvm::Type::getLabelTy(), llvm::Type::getMetadataTy(), and llvm::Type::getVoidTy().
Referenced by get().
| uint64_t llvm::ArrayType::getNumElements | ( | ) | const [inline] |
Definition at line 373 of file DerivedTypes.h.
Referenced by CompareTypes(), llvm::ConstantArray::ConstantArray(), llvm::GetConstantStringInfo(), GetStringLengthH(), llvm::TargetData::getTypeSizeInBits(), llvm::ArrayValType::hashTypeStructure(), IsNullTerminatedString(), isZeroLengthArray(), LinkAppendingVars(), RecursiveResolveTypesI(), TypesEqual(), and WriteTypeTable().
| void ArrayType::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.
Definition at line 1148 of file Type.cpp.
References llvm::LLVMContextImpl::ArrayTypes, llvm::Type::getContext(), and llvm::LLVMContext::pImpl.
| void ArrayType::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.
Definition at line 1154 of file Type.cpp.
References llvm::LLVMContextImpl::ArrayTypes, llvm::Type::getContext(), and llvm::LLVMContext::pImpl.
Definition at line 380 of file DerivedTypes.h.
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::SequentialType.
Definition at line 381 of file DerivedTypes.h.
References llvm::Type::ArrayTyID, and llvm::Type::getTypeID().
friend class TypeMap< ArrayValType, ArrayType > [friend] |
Definition at line 357 of file DerivedTypes.h.