Home | History | Annotate | Download | only in VMCore

Lines Matching refs:Elements

188   // Okay, our struct is sized if all of the elements are.
400 void StructType::setBody(ArrayRef<Type*> Elements, bool isPacked) {
408 TypeAllocator.Allocate<Type*>(Elements.size());
409 memcpy(Elts, Elements.data(), sizeof(Elements[0])*Elements.size());
412 NumContainedTys = Elements.size();
469 assert(type != 0 && "Cannot create a struct type with no elements with this");
481 StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements,
484 ST->setBody(Elements, isPacked);
488 StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements) {
489 return create(Context, Elements, StringRef());
497 StructType *StructType::create(ArrayRef<Type*> Elements, StringRef Name,
499 assert(!Elements.empty() &&
501 return create(Elements[0]->getContext(), Elements, Name, isPacked);
504 StructType *StructType::create(ArrayRef<Type*> Elements) {
505 assert(!Elements.empty() &&
507 return create(Elements[0]->getContext(), Elements, StringRef());
511 assert(type != 0 && "Cannot create a struct type with no elements with this");
532 assert(type != 0 && "Cannot create a struct type with no elements with this");
653 assert(NumElements > 0 && "#Elements of a VectorType must be greater than 0");
655 "Elements of a VectorType must be a primitive type");