Lines Matching defs:ElementType
631 ArrayType *ArrayType::get(Type *ElementType, uint64_t NumElements) {
632 assert(isValidElementType(ElementType) && "Invalid type for array element!");
634 LLVMContextImpl *pImpl = ElementType->getContext().pImpl;
636 pImpl->ArrayTypes[std::make_pair(ElementType, NumElements)];
639 Entry = new (pImpl->TypeAllocator) ArrayType(ElementType, NumElements);
658 VectorType *VectorType::get(Type *ElementType, unsigned NumElements) {
660 assert(isValidElementType(ElementType) && "Element type of a VectorType must "
664 LLVMContextImpl *pImpl = ElementType->getContext().pImpl;
665 VectorType *&Entry = ElementType->getContext().pImpl
666 ->VectorTypes[std::make_pair(ElementType, NumElements)];
669 Entry = new (pImpl->TypeAllocator) VectorType(ElementType, NumElements);