Lines Matching refs:TheModule

97   llvm::Module &TheModule;  member in __anonaf5ecb460111::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()
1031 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
1034 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString()
1086 auto *Buffer = new llvm::GlobalVariable(TheModule, C->getType(), in GenerateConstantString()
1125 ObjCStrGV->setComdat(TheModule.getOrInsertComdat(StringName)); in GenerateConstantString()
1194 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList()
1233 auto *ClassSymbol = TheModule.getNamedGlobal(SymbolName); in GetClassVar()
1236 ClassSymbol = new llvm::GlobalVariable(TheModule, in GetClassVar()
1244 ClassSymbol->setInitializer(new llvm::GlobalVariable(TheModule, in GetClassVar()
1319 auto *GV = TheModule.getGlobalVariable(Name); in GenerateEmptyProtocol()
1322 GV = new llvm::GlobalVariable(TheModule, ProtocolTy, false, in GenerateEmptyProtocol()
1341 assert(!TheModule.getGlobalVariable(RefName)); in GenerateProtocolRef()
1343 auto GV = new llvm::GlobalVariable(TheModule, ProtocolPtrTy, false, in GenerateProtocolRef()
1346 GV->setComdat(TheModule.getOrInsertComdat(RefName)); in GenerateProtocolRef()
1382 auto *OldGV = TheModule.getGlobalVariable(SymName); in GenerateProtocolRef()
1392 Protocol = new llvm::GlobalVariable(TheModule, ProtocolTy, in GenerateProtocolRef()
1437 GV->setComdat(TheModule.getOrInsertComdat(SymName)); in GenerateProtocolRef()
1469 auto *TypesGlobal = TheModule.getGlobalVariable(TypesVarName); in GetTypeString()
1473 auto *GV = new llvm::GlobalVariable(TheModule, Init->getType(), in GetTypeString()
1475 GV->setComdat(TheModule.getOrInsertComdat(TypesVarName)); in GetTypeString()
1487 if (auto *GV = TheModule.getNamedGlobal(SelVarName)) in GetConstantSelector()
1496 GV->setComdat(TheModule.getOrInsertComdat(SelVarName)); in GetConstantSelector()
1519 auto *Sym = new llvm::GlobalVariable(TheModule, emptyStruct, in GetSectionBounds()
1525 Sym->setComdat(TheModule.getOrInsertComdat((Prefix + in GetSectionBounds()
1532 auto *Start = new llvm::GlobalVariable(TheModule, PtrTy, in GetSectionBounds()
1537 auto *Stop = new llvm::GlobalVariable(TheModule, PtrTy, in GetSectionBounds()
1551 &TheModule); in ModuleInitFunction()
1553 LoadFunction->setComdat(TheModule.getOrInsertComdat(".objcv2_load_function")); in ModuleInitFunction()
1571 InitStruct->setComdat(TheModule.getOrInsertComdat(".objc_init")); in ModuleInitFunction()
1580 auto *InitVar = new llvm::GlobalVariable(TheModule, LoadFunction->getType(), in ModuleInitFunction()
1601 InitVar->setComdat(TheModule.getOrInsertComdat(".objc_ctor")); in ModuleInitFunction()
1616 GV->setComdat(TheModule.getOrInsertComdat(Name)); in ModuleInitFunction()
1670 auto *global = TheModule.getGlobalVariable(lateInit.first); in ModuleInitFunction()
1705 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name); in EmitIvarOffset()
1707 IvarOffsetPointer = new llvm::GlobalVariable(TheModule, IntTy, false, in EmitIvarOffset()
1790 SuperClass = TheModule.getNamedGlobal(SuperClassName); in GenerateClass()
1793 SuperClass = new llvm::GlobalVariable(TheModule, PtrTy, false, in GenerateClass()
1833 llvm::DataLayout td(&TheModule); in GenerateClass()
1866 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
1870 OffsetVar = new llvm::GlobalVariable(TheModule, IntTy, in GenerateClass()
1987 TheModule.getNamedGlobal(SymbolForClass(className))) in GenerateClass()
2000 auto classInitRef = new llvm::GlobalVariable(TheModule, in GenerateClass()
2205 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName); in GetClassNamed()
2207 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in GetClassNamed()
2234 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef()
2237 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName); in EmitClassRef()
2239 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in EmitClassRef()
2243 new llvm::GlobalVariable(TheModule, ClassSymbol->getType(), true, in EmitClassRef()
2249 : CGObjCRuntime(cgm), TheModule(CGM.getModule()), in CGObjCGNU()
2473 &TheModule); in GetTypedSelector()
2557 if (llvm::Constant *typeinfo = TheModule.getGlobalVariable(typeinfoName)) in GetEHType()
2566 auto *Vtable = TheModule.getGlobalVariable(vtableName); in GetEHType()
2568 Vtable = new llvm::GlobalVariable(TheModule, PtrToInt8Ty, true, in GetEHType()
2609 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
2612 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */ false, in GenerateConstantString()
2696 ".objc_metaclass_ref" + Class->getNameAsString(), &TheModule); in GenerateMessageSendSuper()
2703 ".objc_class_ref" + Class->getNameAsString(), &TheModule); in GenerateMessageSendSuper()
3018 llvm::DataLayout td(&TheModule); in GenerateMethodList()
3039 TheModule.getFunction(getSymbolNameForMethod(OMD)); in GenerateMethodList()
3160 llvm::DataLayout td(&TheModule); in GenerateClassStructure()
3197 llvm::GlobalVariable *ClassRef = TheModule.getNamedGlobal(ClassSym); in GenerateClassStructure()
3621 if (auto *symbol = TheModule.getGlobalVariable(classSymbolName)) { in GenerateClass()
3624 new llvm::GlobalVariable(TheModule, LongTy, false, in GenerateClass()
3675 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
3683 OffsetVar = new llvm::GlobalVariable(TheModule, Int32Ty, in GenerateClass()
3770 llvm::GlobalVariable *offset = TheModule.getNamedGlobal(Name); in GenerateClass()
3779 new llvm::GlobalVariable(TheModule, offsetValue->getType(), in GenerateClass()
4004 &TheModule); in ModuleInitFunction()
4024 &TheModule); in ModuleInitFunction()
4041 TheModule.getGlobalVariable("_OBJC_CLASS_" + iter->first, true); in ModuleInitFunction()
4071 FunctionName, &TheModule); in GenerateMethod()
4080 FunctionName, &TheModule); in GenerateMethod()
4268 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name); in ObjCIvarOffsetVariable()
4271 TheModule, llvm::PointerType::getUnqual(VMContext), false, in ObjCIvarOffsetVariable()
4326 llvm::Value *Offset = TheModule.getGlobalVariable(name); in EmitIvarOffset()
4328 auto GV = new llvm::GlobalVariable(TheModule, IntTy, in EmitIvarOffset()