Home
last modified time | relevance | path

Searched refs:LLVMM (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DModule.h33 llvm::Module &LLVMM; variable
36 Module(llvm::Module &LLVMM, Context &Ctx) : LLVMM(LLVMM), Ctx(Ctx) {} in Module() argument
44 const DataLayout &getDataLayout() const { return LLVMM.getDataLayout(); } in getDataLayout()
47 return LLVMM.getSourceFileName(); in getSourceFileName()
H A DContext.h258 LLVM_ABI Module *getModule(llvm::Module *LLVMM) const;
260 LLVM_ABI Module *getOrCreateModule(llvm::Module *LLVMM);
280 LLVM_ABI Module *createModule(llvm::Module *LLVMM);
H A DConstant.h1044 llvm::Module *LLVMM = cast<LLVMGlobalT>(this->Val)->getParent(); in getParent() local
1045 return this->Ctx.getModule(LLVMM); in getParent()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DModule.cpp18 llvm::Function *LLVMF = LLVMM.getFunction(Name); in getFunction()
25 Ctx.getValue(LLVMM.getGlobalVariable(Name, AllowInternal))); in getGlobalVariable()
29 return cast_or_null<GlobalAlias>(Ctx.getValue(LLVMM.getNamedAlias(Name))); in getNamedAlias()
33 return cast_or_null<GlobalIFunc>(Ctx.getValue(LLVMM.getNamedIFunc(Name))); in getNamedIFunc()
37 void Module::dumpOS(raw_ostream &OS) const { OS << LLVMM; } in dumpOS()
H A DContext.cpp647 Module *Context::getModule(llvm::Module *LLVMM) const { in getModule()
648 auto It = LLVMModuleToModuleMap.find(LLVMM); in getModule()
654 Module *Context::getOrCreateModule(llvm::Module *LLVMM) { in getOrCreateModule() argument
655 auto Pair = LLVMModuleToModuleMap.try_emplace(LLVMM); in getOrCreateModule()
659 It->second = std::unique_ptr<Module>(new Module(*LLVMM, *this)); in getOrCreateModule()
684 Module *Context::createModule(llvm::Module *LLVMM) { in createModule() argument
685 auto *M = getOrCreateModule(LLVMM); in createModule()
687 for (auto &LLVMF : *LLVMM) in createModule()
690 for (auto &Global : LLVMM->globals()) in createModule()
693 for (auto &Alias : LLVMM->aliases()) in createModule()
[all …]