Lines Matching defs:Elements
383 void StructType::setBody(ArrayRef<Type*> Elements, bool isPacked) {
390 NumContainedTys = Elements.size();
392 if (Elements.empty()) {
397 ContainedTys = Elements.copy(getContext().pImpl->Alloc).data();
462 StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements,
465 ST->setBody(Elements, isPacked);
469 StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements) {
470 return create(Context, Elements, StringRef());
477 StructType *StructType::create(ArrayRef<Type*> Elements, StringRef Name,
479 assert(!Elements.empty() &&
481 return create(Elements[0]->getContext(), Elements, Name, isPacked);
484 StructType *StructType::create(ArrayRef<Type*> Elements) {
485 assert(!Elements.empty() &&
487 return create(Elements[0]->getContext(), Elements, StringRef());
617 assert(NumElts > 0 && "#Elements of a VectorType must be greater than 0");
639 assert(MinNumElts > 0 && "#Elements of a VectorType must be greater than 0");