Home | History | Annotate | Download | only in IR

Lines Matching defs:ElementType

683 ArrayType *ArrayType::get(Type *elementType, uint64_t NumElements) {
684 Type *ElementType = const_cast<Type*>(elementType);
685 assert(isValidElementType(ElementType) && "Invalid type for array element!");
687 LLVMContextImpl *pImpl = ElementType->getContext().pImpl;
689 pImpl->ArrayTypes[std::make_pair(ElementType, NumElements)];
692 Entry = new (pImpl->TypeAllocator) ArrayType(ElementType, NumElements);
710 VectorType *VectorType::get(Type *elementType, unsigned NumElements) {
711 Type *ElementType = const_cast<Type*>(elementType);
713 assert(isValidElementType(ElementType) &&
716 LLVMContextImpl *pImpl = ElementType->getContext().pImpl;
717 VectorType *&Entry = ElementType->getContext().pImpl
718 ->VectorTypes[std::make_pair(ElementType, NumElements)];
721 Entry = new (pImpl->TypeAllocator) VectorType(ElementType, NumElements);