Lines Matching refs:TheModule
99 llvm::Module &TheModule; member in __anonc5a169470111::CGObjCGNU
210 auto *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString()
213 auto *GV = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString()
215 GV->setComdat(TheModule.getOrInsertComdat(name)); in ExportUniqueString()
279 llvm::DataLayout td(&TheModule); in PushPropertyListHeader()
1008 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
1011 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString()
1064 auto *Buffer = new llvm::GlobalVariable(TheModule, C->getType(), in GenerateConstantString()
1103 ObjCStrGV->setComdat(TheModule.getOrInsertComdat(StringName)); in GenerateConstantString()
1173 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList()
1212 auto *ClassSymbol = TheModule.getNamedGlobal(SymbolName); in GetClassVar()
1215 ClassSymbol = new llvm::GlobalVariable(TheModule, in GetClassVar()
1223 ClassSymbol->setInitializer(new llvm::GlobalVariable(TheModule, in GetClassVar()
1298 auto *GV = TheModule.getGlobalVariable(Name); in GenerateEmptyProtocol()
1301 GV = new llvm::GlobalVariable(TheModule, ProtocolTy, false, in GenerateEmptyProtocol()
1320 assert(!TheModule.getGlobalVariable(RefName)); in GenerateProtocolRef()
1322 auto GV = new llvm::GlobalVariable(TheModule, ProtocolPtrTy, in GenerateProtocolRef()
1325 GV->setComdat(TheModule.getOrInsertComdat(RefName)); in GenerateProtocolRef()
1360 auto *OldGV = TheModule.getGlobalVariable(SymName); in GenerateProtocolRef()
1370 Protocol = new llvm::GlobalVariable(TheModule, ProtocolTy, in GenerateProtocolRef()
1417 GV->setComdat(TheModule.getOrInsertComdat(SymName)); in GenerateProtocolRef()
1443 auto *TypesGlobal = TheModule.getGlobalVariable(TypesVarName); in GetTypeString()
1447 auto *GV = new llvm::GlobalVariable(TheModule, Init->getType(), in GetTypeString()
1449 GV->setComdat(TheModule.getOrInsertComdat(TypesVarName)); in GetTypeString()
1467 if (auto *GV = TheModule.getNamedGlobal(SelVarName)) in GetConstantSelector()
1476 GV->setComdat(TheModule.getOrInsertComdat(SelVarName)); in GetConstantSelector()
1500 auto *Sym = new llvm::GlobalVariable(TheModule, emptyStruct, in GetSectionBounds()
1506 Sym->setComdat(TheModule.getOrInsertComdat((Prefix + in GetSectionBounds()
1513 auto *Start = new llvm::GlobalVariable(TheModule, PtrTy, in GetSectionBounds()
1518 auto *Stop = new llvm::GlobalVariable(TheModule, PtrTy, in GetSectionBounds()
1532 &TheModule); in ModuleInitFunction()
1534 LoadFunction->setComdat(TheModule.getOrInsertComdat(".objcv2_load_function")); in ModuleInitFunction()
1552 InitStruct->setComdat(TheModule.getOrInsertComdat(".objc_init")); in ModuleInitFunction()
1561 auto *InitVar = new llvm::GlobalVariable(TheModule, LoadFunction->getType(), in ModuleInitFunction()
1582 InitVar->setComdat(TheModule.getOrInsertComdat(".objc_ctor")); in ModuleInitFunction()
1597 GV->setComdat(TheModule.getOrInsertComdat(Name)); in ModuleInitFunction()
1651 auto *global = TheModule.getGlobalVariable(lateInit.first); in ModuleInitFunction()
1687 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name); in EmitIvarOffset()
1689 IvarOffsetPointer = new llvm::GlobalVariable(TheModule, IntTy, false, in EmitIvarOffset()
1772 SuperClass = TheModule.getNamedGlobal(SuperClassName); in GenerateClass()
1775 SuperClass = new llvm::GlobalVariable(TheModule, PtrTy, false, in GenerateClass()
1815 llvm::DataLayout td(&TheModule); in GenerateClass()
1848 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
1852 OffsetVar = new llvm::GlobalVariable(TheModule, IntTy, in GenerateClass()
1969 TheModule.getNamedGlobal(SymbolForClass(className))) in GenerateClass()
1984 auto classInitRef = new llvm::GlobalVariable(TheModule, in GenerateClass()
2087 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName); in GetClassNamed()
2089 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in GetClassNamed()
2116 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef()
2119 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName); in EmitClassRef()
2121 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in EmitClassRef()
2125 new llvm::GlobalVariable(TheModule, ClassSymbol->getType(), true, in EmitClassRef()
2131 : CGObjCRuntime(cgm), TheModule(CGM.getModule()), in CGObjCGNU()
2343 ".objc_selector_" + Sel.getAsString(), &TheModule); in GetTypedSelector()
2427 llvm::Constant *typeinfo = TheModule.getGlobalVariable(typeinfoName); in GetEHType()
2437 auto *Vtable = TheModule.getGlobalVariable(vtableName); in GetEHType()
2439 Vtable = new llvm::GlobalVariable(TheModule, PtrToInt8Ty, true, in GetEHType()
2481 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
2484 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString()
2571 ".objc_metaclass_ref" + Class->getNameAsString(), &TheModule); in GenerateMessageSendSuper()
2578 ".objc_class_ref" + Class->getNameAsString(), &TheModule); in GenerateMessageSendSuper()
2802 llvm::DataLayout td(&TheModule); in GenerateMethodList()
2823 TheModule.getFunction(getSymbolNameForMethod(OMD)); in GenerateMethodList()
2944 llvm::DataLayout td(&TheModule); in GenerateClassStructure()
2981 llvm::GlobalVariable *ClassRef = TheModule.getNamedGlobal(ClassSym); in GenerateClassStructure()
3417 if (auto *symbol = TheModule.getGlobalVariable(classSymbolName)) { in GenerateClass()
3420 new llvm::GlobalVariable(TheModule, LongTy, false, in GenerateClass()
3471 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
3479 OffsetVar = new llvm::GlobalVariable(TheModule, Int32Ty, in GenerateClass()
3566 llvm::GlobalVariable *offset = TheModule.getNamedGlobal(Name); in GenerateClass()
3575 new llvm::GlobalVariable(TheModule, offsetValue->getType(), in GenerateClass()
3810 &TheModule); in ModuleInitFunction()
3830 &TheModule); in ModuleInitFunction()
3847 TheModule.getGlobalVariable("_OBJC_CLASS_" + iter->first, true); in ModuleInitFunction()
3876 &TheModule); in GenerateMethod()
4040 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name); in ObjCIvarOffsetVariable()
4042 IvarOffsetPointer = new llvm::GlobalVariable(TheModule, in ObjCIvarOffsetVariable()
4096 llvm::Value *Offset = TheModule.getGlobalVariable(name); in EmitIvarOffset()
4098 auto GV = new llvm::GlobalVariable(TheModule, IntTy, in EmitIvarOffset()