Home
last modified time | relevance | path

Searched refs:TheModule (Results 1 – 19 of 19) sorted by relevance

/NextBSD/contrib/llvm/lib/Transforms/ObjCARC/
HDARCRuntimeEntryPoints.h46 ARCRuntimeEntryPoints() : TheModule(nullptr), in ARCRuntimeEntryPoints()
58 TheModule = M; in init()
71 assert(TheModule != nullptr && "Not initialized."); in get()
103 Module *TheModule;
129 LLVMContext &C = TheModule->getContext(); in getVoidRetI8XEntryPoint()
136 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getVoidRetI8XEntryPoint()
145 LLVMContext &C = TheModule->getContext();
155 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr);
163 LLVMContext &C = TheModule->getContext(); in getI8XRetI8XXI8XEntryPoint()
176 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getI8XRetI8XXI8XEntryPoint()
/NextBSD/contrib/llvm/lib/Target/X86/
HDX86WinEHState.cpp83 Module *TheModule = nullptr; member in __anondbc6848c0111::WinEHStatePass
115 TheModule = &M; in doInitialization()
116 FrameEscape = Intrinsic::getDeclaration(TheModule, Intrinsic::localescape); in doInitialization()
117 FrameRecover = Intrinsic::getDeclaration(TheModule, Intrinsic::localrecover); in doInitialization()
118 FrameAddress = Intrinsic::getDeclaration(TheModule, Intrinsic::frameaddress); in doInitialization()
123 assert(TheModule == &M); in doFinalization()
124 TheModule = nullptr; in doFinalization()
191 LLVMContext &Context = TheModule->getContext(); in getEHLinkRegistrationType()
210 LLVMContext &Context = TheModule->getContext(); in getCXXEHRegistrationType()
232 LLVMContext &Context = TheModule->getContext(); in getSEHRegistrationType()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDCodeGenAction.cpp56 std::unique_ptr<llvm::Module> TheModule, LinkModule; member in clang::BackendConsumer
77 std::unique_ptr<llvm::Module> takeModule() { return std::move(TheModule); } in takeModule()
97 TheModule.reset(Gen->GetModule()); in Initialize()
145 if (!TheModule) in HandleTranslationUnit()
154 TheModule.release(); in HandleTranslationUnit()
158 assert(TheModule.get() == M && in HandleTranslationUnit()
171 LLVMContext &Ctx = TheModule->getContext(); in HandleTranslationUnit()
184 TheModule.get(), Action, AsmOutStream); in HandleTranslationUnit()
586 TheModule.reset(); in ~CodeGenAction()
603 TheModule = BEConsumer->takeModule(); in EndSourceFileAction()
[all …]
HDCGCUDANV.cpp38 llvm::Module &TheModule; member in __anonace94b420111::CGNVCUDARuntime
81 TheModule(CGM.getModule()) { in CGNVCUDARuntime()
173 llvm::GlobalValue::InternalLinkage, "__cuda_register_kernels", &TheModule); in makeRegisterKernelsFn()
230 llvm::GlobalValue::InternalLinkage, "__cuda_module_ctor", &TheModule); in makeModuleCtorFunction()
259 TheModule, FatbinWrapperTy, true, llvm::GlobalValue::InternalLinkage, in makeModuleCtorFunction()
268 TheModule, VoidPtrPtrTy, false, llvm::GlobalValue::InternalLinkage, in makeModuleCtorFunction()
300 llvm::GlobalValue::InternalLinkage, "__cuda_module_dtor", &TheModule); in makeModuleDtorFunction()
HDBackendUtil.cpp54 Module *TheModule; member in __anonb2d6b1fd0111::EmitAssemblyHelper
90 PerFunctionPasses = new legacy::FunctionPassManager(TheModule); in getPerFunctionPasses()
121 TheModule(M), CodeGenerationTime("Code Generation Time"), in EmitAssemblyHelper()
367 Triple TargetTriple(TheModule->getTargetTriple()); in CreatePasses()
429 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine()
565 llvm::Triple TargetTriple(TheModule->getTargetTriple()); in AddEmitPasses()
608 TheModule->setDataLayout(*TM->getDataLayout()); in EmitAssembly()
640 for (Function &F : *TheModule) in EmitAssembly()
648 PerModulePasses->run(*TheModule); in EmitAssembly()
653 CodeGenPasses->run(*TheModule); in EmitAssembly()
HDCGObjCGNU.cpp101 llvm::Module &TheModule; member in __anonb71487890111::CGObjCGNU
180 auto *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString()
183 ConstStr = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString()
198 return new llvm::GlobalVariable(TheModule, Ty, false, in MakeGlobal()
210 return new llvm::GlobalVariable(TheModule, Ty, false, in MakeGlobal()
831 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName); in GetClassNamed()
834 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in GetClassNamed()
863 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef()
866 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName); in EmitClassRef()
868 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in EmitClassRef()
[all …]
HDCodeGenTypes.h124 llvm::Module &TheModule; variable
176 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext()
HDCodeGenModule.cpp84 PreprocessorOpts(PPO), CodeGenOpts(CGO), TheModule(M), Diags(diags), in CodeGenModule()
651 new llvm::GlobalVariable(TheModule, AT, false, in EmitCtorList()
1293 GV->setComdat(TheModule.getOrInsertComdat(GV->getName())); in GetAddrOfUuidDescriptor()
1846 GV->setComdat(TheModule.getOrInsertComdat(GV->getName())); in CreateOrReplaceCXXRuntimeVariable()
1976 GO.setComdat(TheModule.getOrInsertComdat(GO.getName())); in maybeSetTrivialComdat()
3104 GV->setComdat(TheModule.getOrInsertComdat(GV->getName())); in GetAddrOfGlobalTemporary()
3580 TheModule.getOrInsertNamedMetadata("llvm.ident"); in EmitVersionIdentMetadata()
3582 llvm::LLVMContext &Ctx = TheModule.getContext(); in EmitVersionIdentMetadata()
3605 if (llvm::NamedMDNode *CUNode = TheModule.getNamedMetadata("llvm.dbg.cu")) { in EmitCoverageFile()
3606 llvm::NamedMDNode *GCov = TheModule.getOrInsertNamedMetadata("llvm.gcov"); in EmitCoverageFile()
[all …]
HDCodeGenModule.h286 llvm::Module &TheModule; variable
615 llvm::Module &getModule() const { return TheModule; } in getModule()
HDCGDeclCXX.cpp292 TheModule, InitFunc->getType(), /*isConstant=*/true, in EmitPointerToInitFunc()
HDCodeGenTypes.cpp33 : CGM(cgm), Context(cgm.getContext()), TheModule(cgm.getModule()), in CodeGenTypes()
HDCGDecl.cpp215 GV->setComdat(TheModule.getOrInsertComdat(GV->getName())); in getOrCreateStaticVarDecl()
/NextBSD/contrib/llvm/lib/Target/CppBackend/
HDCPPBackend.cpp97 const Module *TheModule; member in __anon5f7a71ba0111::CppWriter
691 for (Module::const_global_iterator I = TheModule->global_begin(), in printTypes()
692 E = TheModule->global_end(); I != E; ++I) { in printTypes()
699 for (Module::const_iterator FI = TheModule->begin(), FE = TheModule->end(); in printTypes()
948 for (Module::const_global_iterator I = TheModule->global_begin(), in printConstants()
949 E = TheModule->global_end(); I != E; ++I) in printConstants()
954 for (Module::const_iterator FI = TheModule->begin(), FE = TheModule->end(); in printConstants()
1864 const Function* F = TheModule->getFunction(func); in printInline()
1894 printTypes(TheModule); in printModuleBody()
1899 for (Module::const_iterator I = TheModule->begin(), E = TheModule->end(); in printModuleBody()
[all …]
/NextBSD/contrib/llvm/include/llvm/CodeGen/
HDMachineModuleInfo.h119 const Module *TheModule; variable
220 void setModule(const Module *M) { TheModule = M; } in setModule()
221 const Module *getModule() const { return TheModule; } in getModule()
/NextBSD/contrib/llvm/lib/IR/
HDAsmWriter.cpp561 const Module* TheModule; member in llvm::SlotTracker
730 : TheModule(M), TheFunction(nullptr), FunctionProcessed(false), in SlotTracker()
737 : TheModule(F ? F->getParent() : nullptr), TheFunction(F), in SlotTracker()
743 if (TheModule) { in initialize()
745 TheModule = nullptr; ///< Prevent re-processing next time we're called. in initialize()
758 for (const GlobalVariable &Var : TheModule->globals()) { in processModule()
763 for (const GlobalAlias &A : TheModule->aliases()) { in processModule()
769 for (const NamedMDNode &NMD : TheModule->named_metadata()) { in processModule()
774 for (const Function &F : *TheModule) { in processModule()
1995 const Module *TheModule; member in __anonb5c1df270611::AssemblyWriter
[all …]
/NextBSD/contrib/llvm/tools/clang/include/clang/CodeGen/
HDCodeGenAction.h27 std::unique_ptr<llvm::Module> TheModule; variable
/NextBSD/contrib/llvm/lib/Bitcode/Reader/
HDBitcodeReader.cpp135 Module *TheModule = nullptr; member in __anon397f91170111::BitcodeReader
1533 Triple TT(TheModule->getTargetTriple()); in parseValueSymbolTable()
1570 GO->setComdat(TheModule->getOrInsertComdat(V->getName())); in parseValueSymbolTable()
1653 NamedMDNode *NMD = TheModule->getOrInsertNamedMetadata(Name); in parseMetadata()
2036 unsigned NewKind = TheModule->getMDKindID(Name.str()); in parseMetadata()
2727 for (Function &F : *TheModule) { in globalCleanup()
2734 for (GlobalVariable &GV : TheModule->globals()) in globalCleanup()
2866 TheModule->setTargetTriple(S); in parseModule()
2873 TheModule->setDataLayout(S); in parseModule()
2880 TheModule->setModuleInlineAsm(S); in parseModule()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/Frontend/
HDCompilerInstance.cpp1683 Module *TheModule = I->second; in loadGlobalModuleIndex() local
1684 const FileEntry *Entry = TheModule->getASTFile(); in loadGlobalModuleIndex()
1688 getPreprocessor().getIdentifierInfo(TheModule->Name), TriggerLoc)); in loadGlobalModuleIndex()
1691 loadModule(TheModule->DefinitionLoc, Path, in loadGlobalModuleIndex()
/NextBSD/contrib/llvm/lib/CodeGen/
HDMachineModuleInfo.cpp217 TheModule = nullptr; in doInitialization()