Lines Matching refs:TheModule

99   llvm::Module &TheModule;  member in __anon119c321b0111::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()
1010 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
1013 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString()
1066 auto *Buffer = new llvm::GlobalVariable(TheModule, C->getType(), in GenerateConstantString()
1105 ObjCStrGV->setComdat(TheModule.getOrInsertComdat(StringName)); in GenerateConstantString()
1175 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList()
1214 auto *ClassSymbol = TheModule.getNamedGlobal(SymbolName); in GetClassVar()
1217 ClassSymbol = new llvm::GlobalVariable(TheModule, in GetClassVar()
1225 ClassSymbol->setInitializer(new llvm::GlobalVariable(TheModule, in GetClassVar()
1300 auto *GV = TheModule.getGlobalVariable(Name); in GenerateEmptyProtocol()
1303 GV = new llvm::GlobalVariable(TheModule, ProtocolTy, false, in GenerateEmptyProtocol()
1322 assert(!TheModule.getGlobalVariable(RefName)); in GenerateProtocolRef()
1324 auto GV = new llvm::GlobalVariable(TheModule, ProtocolPtrTy, in GenerateProtocolRef()
1327 GV->setComdat(TheModule.getOrInsertComdat(RefName)); in GenerateProtocolRef()
1363 auto *OldGV = TheModule.getGlobalVariable(SymName); in GenerateProtocolRef()
1373 Protocol = new llvm::GlobalVariable(TheModule, ProtocolTy, in GenerateProtocolRef()
1420 GV->setComdat(TheModule.getOrInsertComdat(SymName)); in GenerateProtocolRef()
1446 auto *TypesGlobal = TheModule.getGlobalVariable(TypesVarName); in GetTypeString()
1450 auto *GV = new llvm::GlobalVariable(TheModule, Init->getType(), in GetTypeString()
1452 GV->setComdat(TheModule.getOrInsertComdat(TypesVarName)); in GetTypeString()
1470 if (auto *GV = TheModule.getNamedGlobal(SelVarName)) in GetConstantSelector()
1479 GV->setComdat(TheModule.getOrInsertComdat(SelVarName)); in GetConstantSelector()
1503 auto *Sym = new llvm::GlobalVariable(TheModule, emptyStruct, in GetSectionBounds()
1509 Sym->setComdat(TheModule.getOrInsertComdat((Prefix + in GetSectionBounds()
1516 auto *Start = new llvm::GlobalVariable(TheModule, PtrTy, in GetSectionBounds()
1521 auto *Stop = new llvm::GlobalVariable(TheModule, PtrTy, in GetSectionBounds()
1535 &TheModule); in ModuleInitFunction()
1537 LoadFunction->setComdat(TheModule.getOrInsertComdat(".objcv2_load_function")); in ModuleInitFunction()
1555 InitStruct->setComdat(TheModule.getOrInsertComdat(".objc_init")); in ModuleInitFunction()
1564 auto *InitVar = new llvm::GlobalVariable(TheModule, LoadFunction->getType(), in ModuleInitFunction()
1585 InitVar->setComdat(TheModule.getOrInsertComdat(".objc_ctor")); in ModuleInitFunction()
1600 GV->setComdat(TheModule.getOrInsertComdat(Name)); in ModuleInitFunction()
1654 auto *global = TheModule.getGlobalVariable(lateInit.first); in ModuleInitFunction()
1690 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name); in EmitIvarOffset()
1692 IvarOffsetPointer = new llvm::GlobalVariable(TheModule, IntTy, false, in EmitIvarOffset()
1776 SuperClass = TheModule.getNamedGlobal(SuperClassName); in GenerateClass()
1779 SuperClass = new llvm::GlobalVariable(TheModule, PtrTy, false, in GenerateClass()
1819 llvm::DataLayout td(&TheModule); in GenerateClass()
1852 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
1856 OffsetVar = new llvm::GlobalVariable(TheModule, IntTy, in GenerateClass()
1973 TheModule.getNamedGlobal(SymbolForClass(className))) in GenerateClass()
1988 auto classInitRef = new llvm::GlobalVariable(TheModule, in GenerateClass()
2091 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName); in GetClassNamed()
2093 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in GetClassNamed()
2120 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef()
2123 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName); in EmitClassRef()
2125 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in EmitClassRef()
2129 new llvm::GlobalVariable(TheModule, ClassSymbol->getType(), true, in EmitClassRef()
2135 : CGObjCRuntime(cgm), TheModule(CGM.getModule()), in CGObjCGNU()
2347 ".objc_selector_" + Sel.getAsString(), &TheModule); in GetTypedSelector()
2431 llvm::Constant *typeinfo = TheModule.getGlobalVariable(typeinfoName); in GetEHType()
2441 auto *Vtable = TheModule.getGlobalVariable(vtableName); in GetEHType()
2443 Vtable = new llvm::GlobalVariable(TheModule, PtrToInt8Ty, true, in GetEHType()
2485 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
2488 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString()
2575 ".objc_metaclass_ref" + Class->getNameAsString(), &TheModule); in GenerateMessageSendSuper()
2582 ".objc_class_ref" + Class->getNameAsString(), &TheModule); in GenerateMessageSendSuper()
2806 llvm::DataLayout td(&TheModule); in GenerateMethodList()
2827 TheModule.getFunction(getSymbolNameForMethod(OMD)); in GenerateMethodList()
2948 llvm::DataLayout td(&TheModule); in GenerateClassStructure()
2985 llvm::GlobalVariable *ClassRef = TheModule.getNamedGlobal(ClassSym); in GenerateClassStructure()
3421 if (auto *symbol = TheModule.getGlobalVariable(classSymbolName)) { in GenerateClass()
3424 new llvm::GlobalVariable(TheModule, LongTy, false, in GenerateClass()
3475 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
3483 OffsetVar = new llvm::GlobalVariable(TheModule, Int32Ty, in GenerateClass()
3570 llvm::GlobalVariable *offset = TheModule.getNamedGlobal(Name); in GenerateClass()
3579 new llvm::GlobalVariable(TheModule, offsetValue->getType(), in GenerateClass()
3814 &TheModule); in ModuleInitFunction()
3834 &TheModule); in ModuleInitFunction()
3851 TheModule.getGlobalVariable("_OBJC_CLASS_" + iter->first, true); in ModuleInitFunction()
3880 &TheModule); in GenerateMethod()
4044 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name); in ObjCIvarOffsetVariable()
4046 IvarOffsetPointer = new llvm::GlobalVariable(TheModule, in ObjCIvarOffsetVariable()
4101 llvm::Value *Offset = TheModule.getGlobalVariable(name); in EmitIvarOffset()
4103 auto GV = new llvm::GlobalVariable(TheModule, IntTy, in EmitIvarOffset()