Lines Matching refs:TheModule

99   llvm::Module &TheModule;  member in __anon2d629be70111::CGObjCGNU
214 auto *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString()
217 auto *GV = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString()
219 GV->setComdat(TheModule.getOrInsertComdat(name)); in ExportUniqueString()
283 llvm::DataLayout td(&TheModule); in PushPropertyListHeader()
1013 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
1016 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString()
1069 auto *Buffer = new llvm::GlobalVariable(TheModule, C->getType(), in GenerateConstantString()
1108 ObjCStrGV->setComdat(TheModule.getOrInsertComdat(StringName)); in GenerateConstantString()
1178 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList()
1219 auto *ClassSymbol = TheModule.getNamedGlobal(SymbolName); in GetClassVar()
1222 ClassSymbol = new llvm::GlobalVariable(TheModule, in GetClassVar()
1230 ClassSymbol->setInitializer(new llvm::GlobalVariable(TheModule, in GetClassVar()
1305 auto *GV = TheModule.getGlobalVariable(Name); in GenerateEmptyProtocol()
1308 GV = new llvm::GlobalVariable(TheModule, ProtocolTy, false, in GenerateEmptyProtocol()
1327 assert(!TheModule.getGlobalVariable(RefName)); in GenerateProtocolRef()
1329 auto GV = new llvm::GlobalVariable(TheModule, ProtocolPtrTy, in GenerateProtocolRef()
1332 GV->setComdat(TheModule.getOrInsertComdat(RefName)); in GenerateProtocolRef()
1368 auto *OldGV = TheModule.getGlobalVariable(SymName); in GenerateProtocolRef()
1378 Protocol = new llvm::GlobalVariable(TheModule, ProtocolTy, in GenerateProtocolRef()
1425 GV->setComdat(TheModule.getOrInsertComdat(SymName)); in GenerateProtocolRef()
1451 auto *TypesGlobal = TheModule.getGlobalVariable(TypesVarName); in GetTypeString()
1455 auto *GV = new llvm::GlobalVariable(TheModule, Init->getType(), in GetTypeString()
1457 GV->setComdat(TheModule.getOrInsertComdat(TypesVarName)); in GetTypeString()
1475 if (auto *GV = TheModule.getNamedGlobal(SelVarName)) in GetConstantSelector()
1484 GV->setComdat(TheModule.getOrInsertComdat(SelVarName)); in GetConstantSelector()
1508 auto *Sym = new llvm::GlobalVariable(TheModule, emptyStruct, in GetSectionBounds()
1514 Sym->setComdat(TheModule.getOrInsertComdat((Prefix + in GetSectionBounds()
1521 auto *Start = new llvm::GlobalVariable(TheModule, PtrTy, in GetSectionBounds()
1526 auto *Stop = new llvm::GlobalVariable(TheModule, PtrTy, in GetSectionBounds()
1540 &TheModule); in ModuleInitFunction()
1542 LoadFunction->setComdat(TheModule.getOrInsertComdat(".objcv2_load_function")); in ModuleInitFunction()
1560 InitStruct->setComdat(TheModule.getOrInsertComdat(".objc_init")); in ModuleInitFunction()
1569 auto *InitVar = new llvm::GlobalVariable(TheModule, LoadFunction->getType(), in ModuleInitFunction()
1590 InitVar->setComdat(TheModule.getOrInsertComdat(".objc_ctor")); in ModuleInitFunction()
1605 GV->setComdat(TheModule.getOrInsertComdat(Name)); in ModuleInitFunction()
1659 auto *global = TheModule.getGlobalVariable(lateInit.first); in ModuleInitFunction()
1696 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name); in EmitIvarOffset()
1698 IvarOffsetPointer = new llvm::GlobalVariable(TheModule, IntTy, false, in EmitIvarOffset()
1782 SuperClass = TheModule.getNamedGlobal(SuperClassName); in GenerateClass()
1785 SuperClass = new llvm::GlobalVariable(TheModule, PtrTy, false, in GenerateClass()
1825 llvm::DataLayout td(&TheModule); in GenerateClass()
1858 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
1862 OffsetVar = new llvm::GlobalVariable(TheModule, IntTy, in GenerateClass()
1979 TheModule.getNamedGlobal(SymbolForClass(className))) in GenerateClass()
1994 auto classInitRef = new llvm::GlobalVariable(TheModule, in GenerateClass()
2097 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName); in GetClassNamed()
2099 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in GetClassNamed()
2126 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef()
2129 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName); in EmitClassRef()
2131 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in EmitClassRef()
2135 new llvm::GlobalVariable(TheModule, ClassSymbol->getType(), true, in EmitClassRef()
2141 : CGObjCRuntime(cgm), TheModule(CGM.getModule()), in CGObjCGNU()
2359 &TheModule); in GetTypedSelector()
2443 llvm::Constant *typeinfo = TheModule.getGlobalVariable(typeinfoName); in GetEHType()
2453 auto *Vtable = TheModule.getGlobalVariable(vtableName); in GetEHType()
2455 Vtable = new llvm::GlobalVariable(TheModule, PtrToInt8Ty, true, in GetEHType()
2497 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
2500 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString()
2587 ".objc_metaclass_ref" + Class->getNameAsString(), &TheModule); in GenerateMessageSendSuper()
2594 ".objc_class_ref" + Class->getNameAsString(), &TheModule); in GenerateMessageSendSuper()
2891 llvm::DataLayout td(&TheModule); in GenerateMethodList()
2912 TheModule.getFunction(getSymbolNameForMethod(OMD)); in GenerateMethodList()
3033 llvm::DataLayout td(&TheModule); in GenerateClassStructure()
3070 llvm::GlobalVariable *ClassRef = TheModule.getNamedGlobal(ClassSym); in GenerateClassStructure()
3506 if (auto *symbol = TheModule.getGlobalVariable(classSymbolName)) { in GenerateClass()
3509 new llvm::GlobalVariable(TheModule, LongTy, false, in GenerateClass()
3560 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
3568 OffsetVar = new llvm::GlobalVariable(TheModule, Int32Ty, in GenerateClass()
3655 llvm::GlobalVariable *offset = TheModule.getNamedGlobal(Name); in GenerateClass()
3664 new llvm::GlobalVariable(TheModule, offsetValue->getType(), in GenerateClass()
3898 &TheModule); in ModuleInitFunction()
3918 &TheModule); in ModuleInitFunction()
3935 TheModule.getGlobalVariable("_OBJC_CLASS_" + iter->first, true); in ModuleInitFunction()
3964 &TheModule); in GenerateMethod()
4128 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name); in ObjCIvarOffsetVariable()
4130 IvarOffsetPointer = new llvm::GlobalVariable(TheModule, in ObjCIvarOffsetVariable()
4185 llvm::Value *Offset = TheModule.getGlobalVariable(name); in EmitIvarOffset()
4187 auto GV = new llvm::GlobalVariable(TheModule, IntTy, in EmitIvarOffset()