Home | History | Annotate | Download | only in VMCore

Lines Matching defs:ElementType

624 ArrayType *ArrayType::get(Type *elementType, uint64_t NumElements) {
625 Type *ElementType = const_cast<Type*>(elementType);
626 assert(isValidElementType(ElementType) && "Invalid type for array element!");
628 LLVMContextImpl *pImpl = ElementType->getContext().pImpl;
630 pImpl->ArrayTypes[std::make_pair(ElementType, NumElements)];
633 Entry = new (pImpl->TypeAllocator) ArrayType(ElementType, NumElements);
651 VectorType *VectorType::get(Type *elementType, unsigned NumElements) {
652 Type *ElementType = const_cast<Type*>(elementType);
654 assert(isValidElementType(ElementType) &&
657 LLVMContextImpl *pImpl = ElementType->getContext().pImpl;
658 VectorType *&Entry = ElementType->getContext().pImpl
659 ->VectorTypes[std::make_pair(ElementType, NumElements)];
662 Entry = new (pImpl->TypeAllocator) VectorType(ElementType, NumElements);