Lines Matching defs:TheModule

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