Lines Matching refs:TheModule
113 llvm::Module &TheModule; member in __anon0fc3211f0111::CGObjCGNU
219 auto *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString()
222 auto *GV = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString()
224 GV->setComdat(TheModule.getOrInsertComdat(name)); in ExportUniqueString()
288 llvm::DataLayout td(&TheModule); in PushPropertyListHeader()
1000 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
1003 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString()
1049 auto *Buffer = new llvm::GlobalVariable(TheModule, C->getType(), in GenerateConstantString()
1088 ObjCStrGV->setComdat(TheModule.getOrInsertComdat(StringName)); in GenerateConstantString()
1154 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList()
1190 auto *ClassSymbol = TheModule.getNamedGlobal(SymbolName); in GetClassVar()
1193 ClassSymbol = new llvm::GlobalVariable(TheModule, in GetClassVar()
1201 ClassSymbol->setInitializer(new llvm::GlobalVariable(TheModule, in GetClassVar()
1248 auto *GV = TheModule.getGlobalVariable(Name); in GenerateEmptyProtocol()
1251 GV = new llvm::GlobalVariable(TheModule, ProtocolTy, false, in GenerateEmptyProtocol()
1270 assert(!TheModule.getGlobalVariable(RefName)); in GenerateProtocolRef()
1272 auto GV = new llvm::GlobalVariable(TheModule, ProtocolPtrTy, in GenerateProtocolRef()
1275 GV->setComdat(TheModule.getOrInsertComdat(RefName)); in GenerateProtocolRef()
1310 auto *OldGV = TheModule.getGlobalVariable(SymName); in GenerateProtocolRef()
1320 Protocol = new llvm::GlobalVariable(TheModule, ProtocolTy, in GenerateProtocolRef()
1365 GV->setComdat(TheModule.getOrInsertComdat(SymName)); in GenerateProtocolRef()
1391 auto *TypesGlobal = TheModule.getGlobalVariable(TypesVarName); in GetTypeString()
1395 auto *GV = new llvm::GlobalVariable(TheModule, Init->getType(), in GetTypeString()
1397 GV->setComdat(TheModule.getOrInsertComdat(TypesVarName)); in GetTypeString()
1415 if (auto *GV = TheModule.getNamedGlobal(SelVarName)) in GetConstantSelector()
1424 GV->setComdat(TheModule.getOrInsertComdat(SelVarName)); in GetConstantSelector()
1448 auto *Sym = new llvm::GlobalVariable(TheModule, emptyStruct, in GetSectionBounds()
1454 Sym->setComdat(TheModule.getOrInsertComdat((Prefix + in GetSectionBounds()
1461 auto *Start = new llvm::GlobalVariable(TheModule, PtrTy, in GetSectionBounds()
1466 auto *Stop = new llvm::GlobalVariable(TheModule, PtrTy, in GetSectionBounds()
1480 &TheModule); in ModuleInitFunction()
1482 LoadFunction->setComdat(TheModule.getOrInsertComdat(".objcv2_load_function")); in ModuleInitFunction()
1499 InitStruct->setComdat(TheModule.getOrInsertComdat(".objc_init")); in ModuleInitFunction()
1508 auto *InitVar = new llvm::GlobalVariable(TheModule, LoadFunction->getType(), in ModuleInitFunction()
1529 InitVar->setComdat(TheModule.getOrInsertComdat(".objc_ctor")); in ModuleInitFunction()
1544 GV->setComdat(TheModule.getOrInsertComdat(Name)); in ModuleInitFunction()
1609 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name); in EmitIvarOffset()
1611 IvarOffsetPointer = new llvm::GlobalVariable(TheModule, IntTy, false, in EmitIvarOffset()
1691 llvm::Constant *SuperClass = TheModule.getNamedGlobal(SuperClassName); in GenerateClass()
1694 SuperClass = new llvm::GlobalVariable(TheModule, PtrTy, false, in GenerateClass()
1722 llvm::DataLayout td(&TheModule); in GenerateClass()
1756 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
1760 OffsetVar = new llvm::GlobalVariable(TheModule, IntTy, in GenerateClass()
1870 TheModule.getNamedGlobal(SymbolForClass(className))) in GenerateClass()
1885 auto classInitRef = new llvm::GlobalVariable(TheModule, in GenerateClass()
1976 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName); in GetClassNamed()
1978 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in GetClassNamed()
2005 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef()
2008 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName); in EmitClassRef()
2010 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in EmitClassRef()
2014 new llvm::GlobalVariable(TheModule, ClassSymbol->getType(), true, in EmitClassRef()
2020 : CGObjCRuntime(cgm), TheModule(CGM.getModule()), in CGObjCGNU()
2233 ".objc_selector_" + Sel.getAsString(), &TheModule); in GetTypedSelector()
2316 llvm::Constant *typeinfo = TheModule.getGlobalVariable(typeinfoName); in GetEHType()
2326 auto *Vtable = TheModule.getGlobalVariable(vtableName); in GetEHType()
2328 Vtable = new llvm::GlobalVariable(TheModule, PtrToInt8Ty, true, in GetEHType()
2370 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
2373 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString()
2460 ".objc_metaclass_ref" + Class->getNameAsString(), &TheModule); in GenerateMessageSendSuper()
2467 ".objc_class_ref" + Class->getNameAsString(), &TheModule); in GenerateMessageSendSuper()
2688 llvm::DataLayout td(&TheModule); in GenerateMethodList()
2709 TheModule.getFunction(SymbolNameForMethod(ClassName, CategoryName, in GenerateMethodList()
2832 llvm::DataLayout td(&TheModule); in GenerateClassStructure()
2869 llvm::GlobalVariable *ClassRef = TheModule.getNamedGlobal(ClassSym); in GenerateClassStructure()
3293 if (auto *symbol = TheModule.getGlobalVariable(classSymbolName)) { in GenerateClass()
3296 new llvm::GlobalVariable(TheModule, LongTy, false, in GenerateClass()
3347 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
3355 OffsetVar = new llvm::GlobalVariable(TheModule, Int32Ty, in GenerateClass()
3453 llvm::GlobalVariable *offset = TheModule.getNamedGlobal(Name); in GenerateClass()
3462 new llvm::GlobalVariable(TheModule, offsetValue->getType(), in GenerateClass()
3697 &TheModule); in ModuleInitFunction()
3716 &TheModule); in ModuleInitFunction()
3733 TheModule.getGlobalVariable("_OBJC_CLASS_" + iter->first, true); in ModuleInitFunction()
3770 &TheModule); in GenerateMethod()
3932 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name); in ObjCIvarOffsetVariable()
3934 IvarOffsetPointer = new llvm::GlobalVariable(TheModule, in ObjCIvarOffsetVariable()
3988 llvm::Value *Offset = TheModule.getGlobalVariable(name); in EmitIvarOffset()
3990 auto GV = new llvm::GlobalVariable(TheModule, IntTy, in EmitIvarOffset()