Lines Matching refs:TheModule
96 llvm::Module &TheModule;
212 auto *ConstStr = TheModule.getGlobalVariable(name);
215 auto *GV = new llvm::GlobalVariable(TheModule, value->getType(), true,
217 GV->setComdat(TheModule.getOrInsertComdat(name));
280 const llvm::DataLayout &DL = TheModule.getDataLayout();
1031 llvm::Constant *isa = TheModule.getNamedGlobal(Sym);
1034 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false,
1086 auto *Buffer = new llvm::GlobalVariable(TheModule, C->getType(),
1125 ObjCStrGV->setComdat(TheModule.getOrInsertComdat(StringName));
1194 const llvm::DataLayout &DL = TheModule.getDataLayout();
1233 auto *ClassSymbol = TheModule.getNamedGlobal(SymbolName);
1236 ClassSymbol = new llvm::GlobalVariable(TheModule,
1244 ClassSymbol->setInitializer(new llvm::GlobalVariable(TheModule,
1319 auto *GV = TheModule.getGlobalVariable(Name);
1322 GV = new llvm::GlobalVariable(TheModule, ProtocolTy, false,
1341 assert(!TheModule.getGlobalVariable(RefName));
1343 auto GV = new llvm::GlobalVariable(TheModule, ProtocolPtrTy, false,
1346 GV->setComdat(TheModule.getOrInsertComdat(RefName));
1382 auto *OldGV = TheModule.getGlobalVariable(SymName);
1392 Protocol = new llvm::GlobalVariable(TheModule, ProtocolTy,
1437 GV->setComdat(TheModule.getOrInsertComdat(SymName));
1469 auto *TypesGlobal = TheModule.getGlobalVariable(TypesVarName);
1473 auto *GV = new llvm::GlobalVariable(TheModule, Init->getType(),
1475 GV->setComdat(TheModule.getOrInsertComdat(TypesVarName));
1486 if (auto *GV = TheModule.getNamedGlobal(SelVarName))
1495 GV->setComdat(TheModule.getOrInsertComdat(SelVarName));
1518 auto *Sym = new llvm::GlobalVariable(TheModule, emptyStruct,
1524 Sym->setComdat(TheModule.getOrInsertComdat((Prefix +
1531 auto *Start = new llvm::GlobalVariable(TheModule, PtrTy,
1536 auto *Stop = new llvm::GlobalVariable(TheModule, PtrTy,
1550 &TheModule);
1552 LoadFunction->setComdat(TheModule.getOrInsertComdat(".objcv2_load_function"));
1570 InitStruct->setComdat(TheModule.getOrInsertComdat(".objc_init"));
1579 auto *InitVar = new llvm::GlobalVariable(TheModule, LoadFunction->getType(),
1600 InitVar->setComdat(TheModule.getOrInsertComdat(".objc_ctor"));
1615 GV->setComdat(TheModule.getOrInsertComdat(Name));
1669 auto *global = TheModule.getGlobalVariable(lateInit.first);
1707 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name);
1709 IvarOffsetPointer = new llvm::GlobalVariable(TheModule, IntTy, false,
1796 SuperClass = TheModule.getNamedGlobal(SuperClassName);
1799 SuperClass = new llvm::GlobalVariable(TheModule, PtrTy, false,
1839 const llvm::DataLayout &DL = TheModule.getDataLayout();
1872 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName);
1876 OffsetVar = new llvm::GlobalVariable(TheModule, IntTy,
1993 TheModule.getNamedGlobal(SymbolForClass(className)))
2006 auto classInitRef = new llvm::GlobalVariable(TheModule,
2217 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName);
2219 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false,
2246 if (TheModule.getGlobalVariable(symbolRef))
2249 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName);
2251 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false,
2255 new llvm::GlobalVariable(TheModule, ClassSymbol->getType(), true,
2261 : CGObjCRuntime(cgm), TheModule(CGM.getModule()),
2485 &TheModule);
2569 if (llvm::Constant *typeinfo = TheModule.getGlobalVariable(typeinfoName))
2578 auto *Vtable = TheModule.getGlobalVariable(vtableName);
2580 Vtable = new llvm::GlobalVariable(TheModule, PtrToInt8Ty, true,
2621 llvm::Constant *isa = TheModule.getNamedGlobal(Sym);
2624 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */ false,
2708 ".objc_metaclass_ref" + Class->getNameAsString(), &TheModule);
2715 ".objc_class_ref" + Class->getNameAsString(), &TheModule);
3030 const llvm::DataLayout &DL = TheModule.getDataLayout();
3051 TheModule.getFunction(getSymbolNameForMethod(OMD));
3172 const llvm::DataLayout &DL = TheModule.getDataLayout();
3208 llvm::GlobalVariable *ClassRef = TheModule.getNamedGlobal(ClassSym);
3632 if (auto *symbol = TheModule.getGlobalVariable(classSymbolName)) {
3635 new llvm::GlobalVariable(TheModule, LongTy, false,
3686 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName);
3694 OffsetVar = new llvm::GlobalVariable(TheModule, Int32Ty,
3781 llvm::GlobalVariable *offset = TheModule.getNamedGlobal(Name);
3790 new llvm::GlobalVariable(TheModule, offsetValue->getType(),
4015 &TheModule);
4035 &TheModule);
4052 TheModule.getGlobalVariable("_OBJC_CLASS_" + iter->first, true);
4082 FunctionName, &TheModule);
4091 FunctionName, &TheModule);
4279 llvm::GlobalVariable *IvarOffsetPointer = TheModule.getNamedGlobal(Name);
4282 TheModule, llvm::PointerType::getUnqual(VMContext), false,
4337 llvm::Value *Offset = TheModule.getGlobalVariable(name);
4339 auto GV = new llvm::GlobalVariable(TheModule, IntTy,