Home | History | Annotate | Download | only in CodeGen

Lines Matching full:elements

191   /// Generates a global structure, initialized by the elements in the vector.
192 /// The element types must match the types of the structure elements in the
204 /// elements that the array type declares, of the type specified as the array
1218 std::vector<llvm::Constant*> Elements;
1220 Elements.clear();
1227 Elements.push_back(C);
1228 Elements.push_back(MethodTypes[i]);
1231 Elements.push_back(Method);
1232 Methods.push_back(llvm::ConstantStruct::get(ObjCMethodTy, Elements));
1276 std::vector<llvm::Constant*> Elements;
1278 Elements.clear();
1279 Elements.push_back(IvarNames[i]);
1280 Elements.push_back(IvarTypes[i]);
1281 Elements.push_back(IvarOffsets[i]);
1282 Ivars.push_back(llvm::ConstantStruct::get(ObjCIvarTy, Elements));
1290 Elements.clear();
1291 Elements.push_back(llvm::ConstantInt::get(IntTy, (int)IvarNames.size()));
1292 Elements.push_back(llvm::ConstantArray::get(ObjCIvarArrayTy, Ivars));
1299 return MakeGlobal(ObjCIvarListTy, Elements, ".objc_ivar_list");
1345 std::vector<llvm::Constant*> Elements;
1346 Elements.push_back(llvm::ConstantExpr::getBitCast(MetaClass, PtrToInt8Ty));
1347 Elements.push_back(SuperClass);
1348 Elements.push_back(MakeConstantString(Name, ".class_name"));
1349 Elements.push_back(Zero);
1350 Elements.push_back(llvm::ConstantInt::get(LongTy, info));
1353 Elements.push_back(
1358 Elements.push_back(InstanceSize);
1359 Elements.push_back(IVars);
1360 Elements.push_back(Methods);
1361 Elements.push_back(NULLPtr);
1362 Elements.push_back(NULLPtr);
1363 Elements.push_back(NULLPtr);
1364 Elements.push_back(llvm::ConstantExpr::getBitCast(Protocols, PtrTy));
1365 Elements.push_back(NULLPtr);
1366 Elements.push_back(Zero);
1367 Elements.push_back(IvarOffsets);
1368 Elements.push_back(Properties);
1372 return MakeGlobal(ClassTy, Elements, (isMeta ? "_OBJC_METACLASS_":
1385 std::vector<llvm::Constant*> Elements;
1387 Elements.clear();
1388 Elements.push_back(MethodNames[i]);
1389 Elements.push_back(MethodTypes[i]);
1390 Methods.push_back(llvm::ConstantStruct::get(ObjCMethodDescTy, Elements));
1414 std::vector<llvm::Constant*> Elements;
1427 Elements.push_back(Ptr);
1430 Elements);
1431 Elements.clear();
1432 Elements.push_back(NULLPtr);
1433 Elements.push_back(llvm::ConstantInt::get(LongTy, Protocols.size()));
1434 Elements.push_back(ProtocolArray);
1435 return MakeGlobal(ProtocolListTy, Elements, ".objc_protocol_list");
1464 std::vector<llvm::Constant*> Elements;
1467 Elements.push_back(llvm::ConstantExpr::getIntToPtr(
1470 Elements.push_back(MakeConstantString(ProtocolName, ".objc_protocol_name"));
1471 Elements.push_back(ProtocolList);
1472 Elements.push_back(MethodList);
1473 Elements.push_back(MethodList);
1474 Elements.push_back(MethodList);
1475 Elements.push_back(MethodList);
1476 return MakeGlobal(ProtocolTy, Elements, ".objc_protocol");
1625 std::vector<llvm::Constant*> Elements;
1628 Elements.push_back(llvm::ConstantExpr::getIntToPtr(
1631 Elements.push_back(MakeConstantString(ProtocolName, ".objc_protocol_name"));
1632 Elements.push_back(ProtocolList);
1633 Elements.push_back(InstanceMethodList);
1634 Elements.push_back(ClassMethodList);
1635 Elements.push_back(OptionalInstanceMethodList);
1636 Elements.push_back(OptionalClassMethodList);
1637 Elements.push_back(PropertyList);
1638 Elements.push_back(OptionalPropertyList);
1640 llvm::ConstantExpr::getBitCast(MakeGlobal(ProtocolTy, Elements,
1648 std::vector<llvm::Constant*> Elements;
1651 Elements.push_back(MakeConstantString(CategoryName));
1652 Elements.push_back(MakeConstantString(ClassName));
1654 Elements.push_back(llvm::ConstantExpr::getBitCast(GenerateMethodList(
1657 Elements.push_back(llvm::ConstantExpr::getBitCast(GenerateMethodList(
1682 Elements.push_back(llvm::ConstantExpr::getBitCast(MakeGlobal(ProtocolListTy,
1686 PtrTy, PtrTy, PtrTy, NULL), Elements), PtrTy));
1724 std::vector<llvm::Constant*> Elements;
1725 Elements.push_back(MakeConstantString(CategoryName));
1726 Elements.push_back(MakeConstantString(ClassName));
1728 Elements.push_back(llvm::ConstantExpr::getBitCast(GenerateMethodList(
1732 Elements.push_back(llvm::ConstantExpr::getBitCast(GenerateMethodList(
1736 Elements.push_back(llvm::ConstantExpr::getBitCast(
1740 PtrTy, PtrTy, PtrTy, NULL), Elements), PtrTy));
2044 std::vector<llvm::Constant*> Elements;
2056 Elements.push_back(MakeConstantString(StringClass,
2058 Elements.push_back(llvm::ConstantArray::get(StaticsArrayTy,
2064 Statics = MakeGlobal(StaticsListTy, Elements, ".objc_statics");
2067 Elements.clear();
2068 Elements.push_back(Statics);
2069 Elements.push_back(llvm::Constant::getNullValue(StaticsListPtrTy));
2070 Statics = MakeGlobal(StaticsListArrayTy, Elements, ".objc_statics_ptr");
2081 Elements.clear();
2099 Elements.push_back(SelName);
2100 Elements.push_back(SelectorTypeEncoding);
2101 Selectors.push_back(llvm::ConstantStruct::get(SelStructTy, Elements));
2102 Elements.clear();
2113 Elements.push_back(NULLPtr);
2114 Elements.push_back(NULLPtr);
2115 Selectors.push_back(llvm::ConstantStruct::get(SelStructTy, Elements));
2116 Elements.clear();
2119 Elements.push_back(llvm::ConstantInt::get(LongTy, SelectorCount));
2122 Elements.push_back(llvm::ConstantExpr::getBitCast(SelectorList,
2141 Elements.push_back(llvm::ConstantInt::get(llvm::Type::getInt16Ty(VMContext),
2144 Elements.push_back(llvm::ConstantInt::get(llvm::Type::getInt16Ty(VMContext),
2152 Elements.push_back(ClassList);
2154 llvm::Constant *SymTab= MakeGlobal(SymTabTy, Elements);
2161 Elements.clear();
2163 Elements.push_back(llvm::ConstantInt::get(LongTy, RuntimeVersion));
2166 Elements.push_back(
2176 Elements.push_back(MakeConstantString(path, ".objc_source_file_name"));
2177 Elements.push_back(SymTab);
2182 Elements.push_back(llvm::ConstantInt::get(IntTy, 2));
2186 Elements.push_back(llvm::ConstantInt::get(IntTy, 1));
2188 Elements.push_back(llvm::ConstantInt::get(IntTy, 0));
2191 Elements.push_back(llvm::ConstantInt::get(IntTy, 1));
2195 llvm::Value *Module = MakeGlobal(ModuleTy, Elements);