Home
last modified time | relevance | path

Searched refs:Module (Results 1 – 25 of 1875) sorted by relevance

12345678910>>...75

/llvm-project/clang/include/clang/Lex/
H A DModuleMap.h19 #include "clang/Basic/Module.h"
94 Module *SourceModule = nullptr;
97 llvm::SpecificBumpPtrAllocator<Module> ModulesAlloc;
101 llvm::SmallVector<Module *, 8> PendingSubmodules;
104 llvm::StringMap<Module *> Modules;
106 /// Module loading cache that includes submodules, indexed by IdentifierInfo.
108 llvm::DenseMap<const IdentifierInfo *, Module *> CachedModuleLoads;
111 llvm::SmallVector<Module*, 2> ShadowModules;
123 void resolveLinkAsDependencies(Module *Mod);
127 void addLinkAsDependency(Module *Mo
[all...]
/llvm-project/llvm/lib/IR/
H A DModule.cpp1 //===- Module.cpp - Implement the Module class ----------------------------===//
9 // This file implements the Module class for the IR library.
13 #include "llvm/IR/Module.h"
70 // Primitive Module methods.
73 Module::Module(StringRef MID, LLVMContext &C)
80 Module &Module::operator=(Module in Module()
74 Module::Module(StringRef MID, LLVMContext &C) Module() function in Module
[all...]
/llvm-project/clang/test/Modules/
H A Drebuild.m3 // Build Module and set its timestamp
4 // RUN: echo '@import Module;' | %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%…
5 // RUN: touch -m -a -t 201101010000 %t/Module.pcm
6 // RUN: cp %t/Module.pcm %t/Module.pcm.saved
7 // RUN: wc -c %t/Module.pcm > %t/Module.size.saved
11 // RUN: diff %t/Module.pcm %t/Module.pcm.saved
14 // Rebuild Module, reset its timestamp, and verify its size hasn't changed
15 // RUN: rm %t/Module.pcm
16 // RUN: echo '@import Module;' | %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%…
17 // RUN: touch -m -a -t 201101010000 %t/Module.pcm
[all …]
H A DWerror.m9 // RUN: cp %t/Module.pcm %t-saved/Module.pcm
14 // RUN: diff %t/Module.pcm %t-saved/Module.pcm
20 // RUN: not diff %t/Module.pcm %t-saved/Module.pcm
21 // RUN: cp %t/Module.pcm %t-saved/Module.pcm
27 // RUN: diff %t/Module.pcm %t-saved/Module.pcm
33 // RUN: not diff %t/Module.pcm %t-saved/Module.pcm
34 // RUN: cp %t/Module.pcm %t-saved/Module.pcm
42 // RUN-DISABLED: diff %t/Module.pcm %t-saved/Module.pcm
48 // RUN: cp %t/Module.pcm %t-saved/Module.pcm
52 // RUN: not diff %t/Module.pcm %t-saved/Module.pcm
[all …]
H A Dpr59999.cppm7 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/Module.cppm \
8 // RUN: -emit-module-interface -o %t/Module.pcm
10 // RUN: -fmodule-file=Module=%t/Module.pcm -emit-module-interface -o %t/Object.pcm
12 // RUN: -fmodule-file=Module=%t/Module.pcm -emit-llvm -o - | FileCheck %t/Object.cppm
19 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/Module.cppm \
20 // RUN: -emit-reduced-module-interface -o %t/Module.pcm
22 // RUN: -fmodule-file=Module=%t/Module.pcm -emit-module-interface -o %t/Object.pcm
24 // RUN: -fmodule-file=Module=%t/Module.pcm -emit-llvm -o - | FileCheck %t/Object.cppm
27 //--- Module.cppm
28 export module Module;
[all …]
/llvm-project/llvm/unittests/IR/
H A DStructuralHashTest.cpp11 #include "llvm/IR/Module.h"
27 std::unique_ptr<Module> parseIR(LLVMContext &Context, const char *IR) { in parseIR()
29 std::unique_ptr<Module> M = parseAssemblyString(IR, Err, Context); in TEST()
37 std::unique_ptr<Module> M1 = parseIR(Ctx, ""); in TEST()
38 std::unique_ptr<Module> M2 = parseIR(Ctx, ""); in TEST()
44 std::unique_ptr<Module> M0 = parseIR(Ctx, ""); in TEST()
45 std::unique_ptr<Module> M1 = parseIR(Ctx, "define void @f() { ret void }"); in TEST()
46 std::unique_ptr<Module> M2 = parseIR(Ctx, "define void @f() { ret void }"); in TEST()
47 std::unique_ptr<Module> M3 = parseIR(Ctx, "@g = global i32 2"); in TEST()
48 std::unique_ptr<Module> M in TEST()
[all...]
/llvm-project/llvm/tools/bugpoint/
H A DBugDriver.h28 class Module; variable
48 std::unique_ptr<Module> Program; // The raw program, linked together
117 Module &getProgram() const { return *Program; } in getProgram()
120 std::unique_ptr<Module> swapProgramIn(std::unique_ptr<Module> M);
133 void setNewProgram(std::unique_ptr<Module> M);
137 Error compileProgram(Module &M) const;
141 Expected<std::string> executeProgram(const Module &Program,
151 executeProgramSafely(const Module &Program,
157 Error createReferenceFile(Module &M, const std::string &Filename =
164 Expected<bool> diffProgram(const Module &Program,
[all …]
H A DMiscompilation.cpp21 #include "llvm/IR/Module.h"
137 std::unique_ptr<Module> PrefixOutput = in doTest()
154 std::unique_ptr<Module> OriginalInput = in doTest()
188 Expected<bool> (*TestFn)(BugDriver &, std::unique_ptr<Module>,
189 std::unique_ptr<Module>);
194 std::unique_ptr<Module>, in ReduceMiscompilingFunctions() argument
195 std::unique_ptr<Module>)) in ReduceMiscompilingFunctions()
227 static Expected<std::unique_ptr<Module>> testMergedProgram(const BugDriver &BD, in testMergedProgram()
228 const Module &M1, in testMergedProgram()
229 const Module in testMergedProgram()
307 ExtractLoops(BugDriver & BD,Expected<bool> (* TestFn)(BugDriver &,std::unique_ptr<Module>,std::unique_ptr<Module>),std::vector<Function * > & MiscompiledFunctions) ExtractLoops() argument
308 ExtractLoops(BugDriver & BD,Expected<bool> (* TestFn)(BugDriver &,std::unique_ptr<Module>,std::unique_ptr<Module>),std::vector<Function * > & MiscompiledFunctions) ExtractLoops() argument
455 ReduceMiscompiledBlocks(BugDriver & bd,Expected<bool> (* F)(BugDriver &,std::unique_ptr<Module>,std::unique_ptr<Module>),const std::vector<Function * > & Fns) ReduceMiscompiledBlocks() argument
456 ReduceMiscompiledBlocks(BugDriver & bd,Expected<bool> (* F)(BugDriver &,std::unique_ptr<Module>,std::unique_ptr<Module>),const std::vector<Function * > & Fns) ReduceMiscompiledBlocks() argument
539 ExtractBlocks(BugDriver & BD,Expected<bool> (* TestFn)(BugDriver &,std::unique_ptr<Module>,std::unique_ptr<Module>),std::vector<Function * > & MiscompiledFunctions) ExtractBlocks() argument
540 ExtractBlocks(BugDriver & BD,Expected<bool> (* TestFn)(BugDriver &,std::unique_ptr<Module>,std::unique_ptr<Module>),std::vector<Function * > & MiscompiledFunctions) ExtractBlocks() argument
617 DebugAMiscompilation(BugDriver & BD,Expected<bool> (* TestFn)(BugDriver &,std::unique_ptr<Module>,std::unique_ptr<Module>)) DebugAMiscompilation() argument
[all...]
/llvm-project/clang/lib/Basic/
H A DModule.cpp1 //===- Module.cpp - Describe a module -------------------------------------===//
9 // This file defines the Module class, which describes a module in the source
14 #include "clang/Basic/Module.h"
37 Module::Module(ModuleConstructorTag, StringRef Name, in Module() function in Module
38 SourceLocation DefinitionLoc, Module *Parent, bool IsFramework, in Module()
61 Module::~Module() = default; in ~Module()
127 bool Module::isUnimportable(const LangOptions &LangOpts, in hasFeature()
129 Module * in hasFeature()
[all...]
/llvm-project/clang/include/clang/Basic/
H A DModule.h1 //===- Module.h - Describe a module -----------------------------*- C++ -*-===//
10 /// Defines the clang::Module class, which describes a module in the
103 /// Required to construct a Module.
106 /// of all Module instances.
114 /// Aligned to 8 bytes to allow for llvm::PointerIntPair<Module *, 3>.
115 class alignas(8) Module {
146 /// This is the explicit Global Module Fragment of a modular TU.
164 Module *Parent;
194 /// Does this Module is a named module of a standard named module? in isNamedModule()
208 /// Does this Module scop in isImplicitGlobalModule()
[all...]
/llvm-project/mlir/include/mlir/Target/LLVM/
H A DModuleToObject.h1 //===- ModuleToObject.h - Module to object base class -----------*- C++ -*-===//
18 #include "llvm/IR/Module.h"
35 function_ref<void(llvm::Module &)> initialLlvmIRCallback = {},
36 function_ref<void(llvm::Module &)> linkedLlvmIRCallback = {},
37 function_ref<void(llvm::Module &)> optimizedLlvmIRCallback = {},
51 virtual void setDataLayoutAndTriple(llvm::Module &module); in loadBitcodeFiles()
54 virtual std::optional<SmallVector<std::unique_ptr<llvm::Module>>>
55 loadBitcodeFiles(llvm::Module &module) { in handleBitcodeFile()
56 return SmallVector<std::unique_ptr<llvm::Module>>(); in handleBitcodeFile()
60 virtual LogicalResult handleBitcodeFile(llvm::Module
[all...]
/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DModuleUtils.h27 class Module; variable
41 void appendToGlobalCtors(Module &M, Function *F, int Priority,
45 void appendToGlobalDtors(Module &M, Function *F, int Priority,
53 void transformGlobalCtors(Module &M, const GlobalCtorTransformFn &Fn);
54 void transformGlobalDtors(Module &M, const GlobalCtorTransformFn &Fn);
58 void setKCFIType(Module &M, Function &F, StringRef MangledType);
60 FunctionCallee declareSanitizerInitFunction(Module &M, StringRef InitName,
66 Function *createSanitizerCtor(Module &M, StringRef CtorName);
73 Module &M, StringRef CtorName, StringRef InitName,
85 Module
[all...]
/llvm-project/clang/lib/Sema/
H A DSemaModule.cpp24 static void checkModuleImportContext(Sema &S, Module *M,
84 isImportingModuleUnitFromSameModule(ASTContext &Ctx, Module *Imported,
85 Module *CurrentModule, in isImportingModuleUnitFromSameModule()
86 Module *&FoundPrimaryModuleInterface) { in isImportingModuleUnitFromSameModule()
130 Module *Imported, Module *CurrentModule, in makeTransitiveImportsVisible()
137 llvm::SmallVector<Module *, 4> Worklist; in makeTransitiveImportsVisible()
140 Module *FoundPrimaryModuleInterface = in makeTransitiveImportsVisible()
144 Module *Importing = Worklist.pop_back_val(); in makeTransitiveImportsVisible()
155 for (Module *TransImporte in makeTransitiveImportsVisible()
[all...]
/llvm-project/llvm/unittests/ExecutionEngine/MCJIT/
H A DMCJITCAPITest.cpp151 Module = nullptr; in SetUp()
160 else if (Module) in TearDown()
161 LLVMDisposeModule(Module); in TearDown()
165 Module = LLVMModuleCreateWithName("simple_module"); in buildSimpleFunction()
167 LLVMSetTarget(Module, HostTriple.c_str()); in buildSimpleFunction()
169 Function = LLVMAddFunction(Module, "simple_function", in buildSimpleFunction()
178 LLVMVerifyModule(Module, LLVMAbortProcessAction, &Error); in buildSimpleFunction()
185 Module = LLVMModuleCreateWithName("simple_module"); in buildFunctionThatUsesStackmap()
187 LLVMSetTarget(Module, HostTriple.c_str()); in buildFunctionThatUsesStackmap()
193 Module, "llvm.experimental.stackmap", stackmapTy); in buildFunctionThatUsesStackmap()
[all …]
H A DMCJITTestBase.h41 Module *createEmptyModule(StringRef Name = StringRef()) {
42 Module * M = new Module(Name, Context);
47 Function *startFunction(Module *M, FunctionType *FT, StringRef Name) { in startFunction()
63 Function *insertSimpleCallFunction(Module *M, Function *Callee) { in insertSimpleCallFunction()
79 Function *insertMainFunction(Module *M, uint32_t returnCode) { in insertMainFunction()
92 Function *insertAddFunction(Module *M, StringRef Name = "add") {
111 Function *insertExternalReferenceToFunction(Module *M, FunctionType *FTy, in insertExternalReferenceToFunction()
119 Function *insertExternalReferenceToFunction(Module *M, Function *Func) { in insertExternalReferenceToFunction()
128 GlobalVariable *insertGlobalInt32(Module *M, in insertGlobalInt32()
152 Function *insertAccumulateFunction(Module *M,
[all …]
/llvm-project/clang/include/clang/Tooling/DependencyScanning/
H A DModuleDepCollector.h13 #include "clang/Basic/Module.h"
43 explicit PrebuiltModuleDep(const Module *M) in PrebuiltModuleDep()
140 llvm::SmallVector<Module::LinkLibrary, 2> LinkLibraries;
184 StringRef RelativePath, const Module *SuggestedModule,
188 const Module *Imported) override;
196 void handleImport(const Module *Imported);
201 addAllSubmodulePrebuiltDeps(const Module *M, ModuleDeps &MD,
202 llvm::DenseSet<const Module *> &SeenSubmodules);
203 void addModulePrebuiltDeps(const Module *M, ModuleDeps &MD,
204 llvm::DenseSet<const Module *>
[all...]
/llvm-project/lldb/source/Core/
H A DModule.cpp1 //===-- Module.cpp --------------------------------------------------------===//
9 #include "lldb/Core/Module.h"
90 typedef std::vector<Module *> ModuleCollection;
106 std::recursive_mutex &Module::GetAllocationModuleCollectionMutex() { in GetAllocationModuleCollectionMutex()
118 size_t Module::GetNumberAllocatedModules() { in GetNumberAllocatedModules()
124 Module *Module::GetAllocatedModuleAtIndex(size_t idx) { in GetAllocatedModuleAtIndex()
133 Module::Module(const ModuleSpec &module_spec) in Module() function in Module
145 LLDB_LOGF(log, "%p Module in Module()
235 Module::Module(const FileSpec &file_spec, const ArchSpec &arch, Module() function in Module
257 Module::Module() : m_file_has_changed(false), m_first_file_changed_log(false) { Module() function in Module
[all...]
/llvm-project/mlir/test/python/dialects/
H A Dtransform_interpreter.py24 m = ir.Module.parse(print_root_module.replace("from interpreter", "print_self"))
36 transform = ir.Module.parse(
39 payload = ir.Module.parse("module attributes { this.is.payload } {}")
53 m = ir.Module.parse(
56 payload = ir.Module.parse("module attributes { this.is.payload } {}")
65 payload = ir.Module.parse("module attributes { this.is.payload } {}")
108 main = ir.Module.parse(print_root_via_include_module)
109 callee1 = ir.Module.parse(callee1_definition)
110 callee2 = ir.Module.parse(callee2_definition)
128 main = ir.Module.parse(print_root_via_include_module)
[all …]
/llvm-project/clang/lib/Lex/
H A DModuleMap.cpp20 #include "clang/Basic/Module.h"
56 void ModuleMap::resolveLinkAsDependencies(Module *Mod) { in anchor()
67 void ModuleMap::addLinkAsDependency(Module *Mod) { in resolveLinkAsDependencies()
74 Module::HeaderKind ModuleMap::headerRoleToKind(ModuleHeaderRole Role) { in addLinkAsDependency()
77 return Module::HK_Normal; in headerRoleToKind()
79 return Module::HK_Private; in headerRoleToKind()
81 return Module::HK_Textual; in headerRoleToKind()
83 return Module::HK_PrivateTextual; in headerRoleToKind()
85 return Module::HK_Excluded; in headerRoleToKind()
91 ModuleMap::headerKindToRole(Module in headerRoleToKind()
[all...]
/llvm-project/llvm/unittests/ExecutionEngine/Orc/
H A DThreadSafeModuleTest.cpp25 auto M = std::make_unique<Module>("M", *TSCtx.getContext()); in TEST()
34 auto M1 = std::make_unique<Module>("M1", *TSCtx.getContext()); in TEST()
37 auto M2 = std::make_unique<Module>("M2", *TSCtx.getContext()); in TEST()
48 auto M1 = std::make_unique<Module>("M1", *TSCtx.getContext()); in TEST()
53 auto M2 = std::make_unique<Module>("M2", *TSCtx.getContext()); in TEST()
62 auto M = std::make_unique<Module>("M", *TSCtx.getContext()); in TEST()
70 auto M = std::make_unique<Module>("M", *TSCtx.getContext()); in TEST()
90 auto M = std::make_unique<Module>("M", Ctx); in TEST()
97 ThreadSafeModule TSM(std::make_unique<Module>("M", *TSCtx.getContext()), in TEST()
99 TSM.withModuleDo([](Module &M) {}); in TEST()
[all …]
/llvm-project/lldb/unittests/Symbol/
H A DTestType.cpp92 return CompilerContext(CompilerContextKind::Module, ConstString(name));
/llvm-project/clang-tools-extra/modularize/
H A DModuleAssistant.cpp1 //===--- ModuleAssistant.cpp - Module map generation manager --*- C++ -*---===//
10 // createModuleMap, a Module class for representing a module,
14 // The "Module" class represents a module, with members for storing the module
20 // the header list passed to it and creates a tree of Module objects
21 // representing the module hierarchy, represented by a "Module" object,
45 class Module { class
47 Module(llvm::StringRef Name, bool Problem);
48 ~Module();
49 Module(const Module
64 Module::Module(llvm::StringRef Name, bool Problem) Module() function in Module
[all...]
/llvm-project/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.h20 class Module; variable
67 MCJIT(std::unique_ptr<Module> M, std::unique_ptr<TargetMachine> tm,
71 typedef llvm::SmallPtrSet<Module *, 4> ModulePtrSet;
94 void addModule(std::unique_ptr<Module> M) { in addModule()
98 bool removeModule(Module *M) { in removeModule()
103 bool hasModuleBeenAddedButNotLoaded(Module *M) { in hasModuleBeenAddedButNotLoaded()
107 bool hasModuleBeenLoaded(Module *M) { in hasModuleBeenLoaded()
113 bool hasModuleBeenFinalized(Module *M) { in hasModuleBeenFinalized()
117 bool ownsModule(Module* M) { in ownsModule()
122 void markModuleAsLoaded(Module *M) { in markModuleAsLoaded()
[all …]
/llvm-project/llvm/unittests/Linker/
H A DLinkModulesTest.cpp17 #include "llvm/IR/Module.h"
29 M.reset(new Module("MyModule", Ctx)); in SetUp()
66 std::unique_ptr<Module> M;
101 Module *LinkedModule = new Module("MyModuleLinked", Ctx); in TEST_F()
134 static Module *getExternal(LLVMContext &Ctx, StringRef FuncName) { in getExternal()
136 Module *M = new Module("ExternalModule", Ctx); in getExternal()
150 static Module *getInternal(LLVMContext &Ctx) { in getInternal()
151 Module *Internal in getInternal()
[all...]
/llvm-project/llvm/test/Assembler/
H A Ddimodule.ll9 ; CHECK: !1 = !DIModule(scope: !0, name: "Module")
10 !1 = !DIModule(scope: !0, name: "Module")
12 ; CHECK: !2 = !DIModule(scope: !0, name: "Module", configMacros: "-DNDEBUG", includePath: "/usr/inc…
13 !2 = !DIModule(scope: !0, name: "Module", configMacros: "-DNDEBUG", includePath: "/usr/include")
15 !3 = !DIModule(scope: !0, name: "Module", configMacros: "")
17 ; CHECK: !3 = !DIModule(scope: !0, name: "Module", configMacros: "-DNDEBUG", includePath: "/usr/inc…
18 !4 = !DIModule(scope: !0, name: "Module", configMacros: "-DNDEBUG", includePath: "/usr/include", ap…
20 ; CHECK: !4 = !DIModule(scope: !0, name: "Module", isDecl: true)
21 !5 = !DIModule(scope: !0, name: "Module", isDecl: true)

12345678910>>...75