Lines Matching refs:TheModule

97   llvm::Module &TheModule;  member in __anonbab9bb100111::CGObjCGNU
213 auto *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString()
216 auto *GV = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString()
218 GV->setComdat(TheModule.getOrInsertComdat(name)); in ExportUniqueString()
281 llvm::DataLayout td(&TheModule); in PushPropertyListHeader()
1030 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
1033 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString()
1085 auto *Buffer = new llvm::GlobalVariable(TheModule, C->getType(), in GenerateConstantString()
1124 ObjCStrGV->setComdat(TheModule.getOrInsertComdat(StringName)); in GenerateConstantString()
1193 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList()
1232 auto *ClassSymbol = TheModule.getNamedGlobal(SymbolName); in GetClassVar()
1235 ClassSymbol = new llvm::GlobalVariable(TheModule, in GetClassVar()
1243 ClassSymbol->setInitializer(new llvm::GlobalVariable(TheModule, in GetClassVar()
1318 auto *GV = TheModule.getGlobalVariable(Name); in GenerateEmptyProtocol()
1321 GV = new llvm::GlobalVariable(TheModule, ProtocolTy, false, in GenerateEmptyProtocol()
1340 assert(!TheModule.getGlobalVariable(RefName)); in GenerateProtocolRef()
1342 auto GV = new llvm::GlobalVariable(TheModule, ProtocolPtrTy, false, in GenerateProtocolRef()
1345 GV->setComdat(TheModule.getOrInsertComdat(RefName)); in GenerateProtocolRef()
1381 auto *OldGV = TheModule.getGlobalVariable(SymName); in GenerateProtocolRef()
1391 Protocol = new llvm::GlobalVariable(TheModule, ProtocolTy, in GenerateProtocolRef()
1436 GV->setComdat(TheModule.getOrInsertComdat(SymName)); in GenerateProtocolRef()
1468 auto *TypesGlobal = TheModule.getGlobalVariable(TypesVarName); in GetTypeString()
1472 auto *GV = new llvm::GlobalVariable(TheModule, Init->getType(), in GetTypeString()
1474 GV->setComdat(TheModule.getOrInsertComdat(TypesVarName)); in GetTypeString()
1485 if (auto *GV = TheModule.getNamedGlobal(SelVarName)) in GetConstantSelector()
1494 GV->setComdat(TheModule.getOrInsertComdat(SelVarName)); in GetConstantSelector()
1517 auto *Sym = new llvm::GlobalVariable(TheModule, emptyStruct, in GetSectionBounds()
1523 Sym->setComdat(TheModule.getOrInsertComdat((Prefix + in GetSectionBounds()
1530 auto *Start = new llvm::GlobalVariable(TheModule, PtrTy, in GetSectionBounds()
1535 auto *Stop = new llvm::GlobalVariable(TheModule, PtrTy, in GetSectionBounds()
1549 &TheModule); in ModuleInitFunction()
1551 LoadFunction->setComdat(TheModule.getOrInsertComdat(".objcv2_load_function")); in ModuleInitFunction()
1569 InitStruct->setComdat(TheModule.getOrInsertComdat(".objc_init")); in ModuleInitFunction()
1578 auto *InitVar = new llvm::GlobalVariable(TheModule, LoadFunction->getType(), in ModuleInitFunction()
1599 InitVar->setComdat(TheModule.getOrInsertComdat(".objc_ctor")); in ModuleInitFunction()
1614 GV->setComdat(TheModule.getOrInsertComdat(Name)); in ModuleInitFunction()
1668 auto *global = TheModule.getGlobalVariable(lateInit.first); in ModuleInitFunction()
1703 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name); in EmitIvarOffset()
1705 IvarOffsetPointer = new llvm::GlobalVariable(TheModule, IntTy, false, in EmitIvarOffset()
1788 SuperClass = TheModule.getNamedGlobal(SuperClassName); in GenerateClass()
1791 SuperClass = new llvm::GlobalVariable(TheModule, PtrTy, false, in GenerateClass()
1831 llvm::DataLayout td(&TheModule); in GenerateClass()
1864 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
1868 OffsetVar = new llvm::GlobalVariable(TheModule, IntTy, in GenerateClass()
1985 TheModule.getNamedGlobal(SymbolForClass(className))) in GenerateClass()
1998 auto classInitRef = new llvm::GlobalVariable(TheModule, in GenerateClass()
2204 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName); in GetClassNamed()
2206 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in GetClassNamed()
2233 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef()
2236 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName); in EmitClassRef()
2238 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in EmitClassRef()
2242 new llvm::GlobalVariable(TheModule, ClassSymbol->getType(), true, in EmitClassRef()
2248 : CGObjCRuntime(cgm), TheModule(CGM.getModule()), in CGObjCGNU()
2472 &TheModule); in GetTypedSelector()
2556 if (llvm::Constant *typeinfo = TheModule.getGlobalVariable(typeinfoName)) in GetEHType()
2565 auto *Vtable = TheModule.getGlobalVariable(vtableName); in GetEHType()
2567 Vtable = new llvm::GlobalVariable(TheModule, PtrToInt8Ty, true, in GetEHType()
2608 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
2611 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */ false, in GenerateConstantString()
2695 ".objc_metaclass_ref" + Class->getNameAsString(), &TheModule); in GenerateMessageSendSuper()
2702 ".objc_class_ref" + Class->getNameAsString(), &TheModule); in GenerateMessageSendSuper()
3017 llvm::DataLayout td(&TheModule); in GenerateMethodList()
3038 TheModule.getFunction(getSymbolNameForMethod(OMD)); in GenerateMethodList()
3159 llvm::DataLayout td(&TheModule); in GenerateClassStructure()
3196 llvm::GlobalVariable *ClassRef = TheModule.getNamedGlobal(ClassSym); in GenerateClassStructure()
3620 if (auto *symbol = TheModule.getGlobalVariable(classSymbolName)) { in GenerateClass()
3623 new llvm::GlobalVariable(TheModule, LongTy, false, in GenerateClass()
3674 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
3682 OffsetVar = new llvm::GlobalVariable(TheModule, Int32Ty, in GenerateClass()
3769 llvm::GlobalVariable *offset = TheModule.getNamedGlobal(Name); in GenerateClass()
3778 new llvm::GlobalVariable(TheModule, offsetValue->getType(), in GenerateClass()
4003 &TheModule); in ModuleInitFunction()
4023 &TheModule); in ModuleInitFunction()
4040 TheModule.getGlobalVariable("_OBJC_CLASS_" + iter->first, true); in ModuleInitFunction()
4070 FunctionName, &TheModule); in GenerateMethod()
4079 FunctionName, &TheModule); in GenerateMethod()
4267 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name); in ObjCIvarOffsetVariable()
4270 TheModule, llvm::PointerType::getUnqual(VMContext), false, in ObjCIvarOffsetVariable()
4325 llvm::Value *Offset = TheModule.getGlobalVariable(name); in EmitIvarOffset()
4327 auto GV = new llvm::GlobalVariable(TheModule, IntTy, in EmitIvarOffset()