Lines Matching defs:Elements
44 SmallVector<llvm::Constant *, 32> Elements;
145 Elements.push_back(InitCst);
190 assert(!Elements.empty() && "Elements can't be empty!");
226 llvm::Value *LastElt = Elements.back();
247 Elements.pop_back();
252 assert(isa<llvm::UndefValue>(Elements.back()) &&
253 Elements.back()->getType()->isIntegerTy(CharWidth) &&
258 Elements.back() = llvm::ConstantInt::get(CGM.getLLVMContext(), Tmp);
278 Elements.push_back(llvm::ConstantInt::get(CGM.getLLVMContext(), Tmp));
299 Elements.push_back(llvm::ConstantInt::get(CGM.getLLVMContext(),
313 Elements.push_back(C);
331 for (unsigned i = 0, e = Elements.size(); i != e; ++i) {
332 llvm::Constant *C = Elements[i];
360 Elements.swap(PackedElements);
545 Elements, Packed);
552 llvm::Constant *Result = llvm::ConstantStruct::get(STy, Elements);
788 // initialise any elements that have not been initialised explicitly
791 // Initialize remaining array elements.
805 // Copy initializer elements.
1424 // Emit initializer elements.
1443 assert(Filler && "Missing filler for implicit elements of initializer");
1518 std::vector<llvm::Constant *> elements(numElements);
1537 elements[fieldIndex] = EmitNullConstantForBase(CGM, baseType, base);
1546 elements[fieldIndex] = CGM.EmitNullConstant(Field->getType());
1573 if (elements[fieldIndex]) continue;
1576 elements[fieldIndex] = EmitNullConstantForBase(CGM, baseType, base);
1582 if (!elements[i])
1583 elements[i] = llvm::Constant::getNullValue(structure->getElementType(i));
1586 return llvm::ConstantStruct::get(structure, elements);