Home | History | Annotate | Download | only in IR

Lines Matching defs:ElementType

676 ArrayType *ArrayType::get(Type *elementType, uint64_t NumElements) {
677 Type *ElementType = const_cast<Type*>(elementType);
678 assert(isValidElementType(ElementType) && "Invalid type for array element!");
680 LLVMContextImpl *pImpl = ElementType->getContext().pImpl;
682 pImpl->ArrayTypes[std::make_pair(ElementType, NumElements)];
685 Entry = new (pImpl->TypeAllocator) ArrayType(ElementType, NumElements);
703 VectorType *VectorType::get(Type *elementType, unsigned NumElements) {
704 Type *ElementType = const_cast<Type*>(elementType);
706 assert(isValidElementType(ElementType) &&
709 LLVMContextImpl *pImpl = ElementType->getContext().pImpl;
710 VectorType *&Entry = ElementType->getContext().pImpl
711 ->VectorTypes[std::make_pair(ElementType, NumElements)];
714 Entry = new (pImpl->TypeAllocator) VectorType(ElementType, NumElements);