/llvm-project/libcxx/include/ |
H A D | module.modulemap | 1 // This module contains headers related to the configuration of the library. These headers 3 module std_config [system] { 13 module std_core [system] { 14 module cstddef { 15 module byte { header "__cstddef/byte.h" } 16 module max_align_t { 20 module nullptr_t { header "__cstddef/nullptr_t.h" } 21 module ptrdiff_t { header "__cstddef/ptrdiff_t.h" } 22 module size_t { header "__cstddef/size_t.h" } 25 module cstdin [all...] |
/llvm-project/clang/test/Modules/Inputs/ |
H A D | module.modulemap | 1 module c_library [extern_c] { module inner { header "c-header.h" } } 2 module cxx_library { header "cxx-header.h" requires cplusplus } 3 module c_library_bad [extern_c] { header "c-header-bad.h" } 4 module diamond_top { header "diamond_top.h" } 5 module diamond_left { 9 module diamond_right { 13 module diamond_bottom { 17 module irgen { header "irgen.h" } 18 module cxx_irgen_top { header "cxx-irgen-top.h" } 19 module cxx_irgen_left { header "cxx-irgen-left.h" } [all …]
|
/llvm-project/clang/test/ARCMT/Inputs/ |
H A D | module.modulemap | 1 module c_library [extern_c] { module inner { header "c-header.h" } } 2 module cxx_library { header "cxx-header.h" requires cplusplus } 3 module c_library_bad [extern_c] { header "c-header-bad.h" } 4 module diamond_top { header "diamond_top.h" } 5 module diamond_left { 9 module diamond_right { 13 module diamond_bottom { 17 module irgen { header "irgen.h" } 18 module cxx_irgen_top { header "cxx-irgen-top.h" } 19 module cxx_irgen_left { header "cxx-irgen-left.h" } [all …]
|
/llvm-project/llvm/test/MC/Mips/ |
H A D | module-directive-bad.s | 5 .module fp=64 6 # CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 9 .module fp=32 10 # CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 13 .module fp=64 14 # CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code 17 .module fp=32 18 # CHECK-NOT: :[[@LINE-1]]:13: error: .module directive must appear before any code 21 .module fp=64 22 # CHECK: :[[@LINE-1]]:13: error: .module directive must appear before any code [all …]
|
/llvm-project/llvm/test/CodeGen/PowerPC/ |
H A D | PR3488.ll | 3 module asm "\09.section \22___kcrctab+numa_node\22, \22a\22\09" 4 module asm "\09.weak\09__crc_numa_node\09" 5 module asm "\09.long\09__crc_numa_node\09" 6 module asm "\09.previous\09\09\09\09\09" 7 module asm "\09.section \22___kcrctab+_numa_mem_\22, \22a\22\09" 8 module asm "\09.weak\09__crc__numa_mem_\09" 9 module asm "\09.long\09__crc__numa_mem_\09" 10 module asm "\09.previous\09\09\09\09\09" 11 module asm "\09.section \22___kcrctab+node_states\22, \22a\22\09" 12 module asm "\09.weak\09__crc_node_states\09" [all …]
|
/llvm-project/lldb/include/ |
H A D | module.modulemap | 2 module lldb_API { 8 module * { export * } 11 module lldb_Host { 17 module ConnectionFileDescriptor { header "lldb/Host/ConnectionFileDescriptor.h" export * } 18 module Debug { header "lldb/Host/Debug.h" export * } 19 module Editline { header "lldb/Host/Editline.h" export * } 20 module FileCache { header "lldb/Host/FileCache.h" export * } 21 module File { header "lldb/Host/File.h" export * } 22 module FileAction { header "lldb/Host/FileAction.h" export * } 23 module FileSystem { header "lldb/Host/FileSystem.h" export * } [all …]
|
/llvm-project/llvm/include/ |
H A D | module.modulemap | 1 module LLVM_C { 3 module * { export * } 6 module LLVM_Analysis { 9 module * { export * } 17 module LLVM_AsmParser { 20 module * { export * } 23 module LLVM_CodeGenTypes { 26 module LLT { 29 module MVT { 31 extern module LLVM_Extern_CodeGenTypes_Ge [all...] |
/llvm-project/clang/include/clang/Lex/ |
H A D | ModuleMap.h | 10 // module as it relates to headers. 19 #include "clang/Basic/Module.h" 46 /// A mechanism to observe the actions of the module map parser as it 47 /// reads module map files. 54 /// Called when a module map file has been read. 59 /// \param IsSystem Whether this is a module map from a system include path. 63 /// Called when a header is added during module map parsing. 68 /// Called when an umbrella header is added during module map parsing. 87 /// Language options used to parse the module map itself. 92 /// The module tha [all...] |
/llvm-project/flang/test/Semantics/ |
H A D | resolve17.f90 | 2 module m 8 end module 10 module m2 17 end module 19 module m3 32 end module 34 module m4a 42 module m4b 58 module m5a 66 module m5b [all …]
|
H A D | resolve36.f90 | 3 ! C1568 The procedure-name shall have been declared to be a separate module 5 ! C1547 MODULE shall appear only in the function-stmt or subroutine-stmt of a 6 ! module subprogram or of a nonabstract interface body that is declared in the 7 ! scoping unit of a module or submodule. 8 module m1 10 module subroutine sub1(arg1) 13 module integer function fun1() 19 end module 23 !ERROR: 'missing1' was not declared a separate module procedure 24 module procedure missing1 [all …]
|
H A D | separate-mp02.f90 | 3 ! When a module subprogram has the MODULE prefix the following must match 4 ! with the corresponding separate module procedure interface body: 9 module m1 11 module subroutine s4(x) 14 module subroutine s5(x, y) 18 module subroutine s6(x, y) 22 module subroutine s7(x, y, z) 27 module subroutine s8(x, y, z) 32 module subroutin [all...] |
H A D | resolve18.f90 | 2 module m1 8 end module 11 module m2 16 module procedure s 22 end module 35 module m3a 39 module m3b 46 module m4a 55 module m4b 66 module m4c [all …]
|
/llvm-project/clang/test/CXX/module/basic/basic.def.odr/ |
H A D | p6.cppm | 5 // RUN: %clang_cc1 -std=c++20 -verify %t/global-vs-module.cppm 6 // RUN: %clang_cc1 -std=c++20 -verify %t/global-vs-module.cppm -DEXPORT 7 // RUN: %clang_cc1 -std=c++20 -verify %t/global-vs-module.cppm -DUSING 9 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/global-vs-module.cppm -o %t/M.pcm -DNO_GLOB… 10 // RUN: %clang_cc1 -std=c++20 -verify %t/module-vs-global.cpp -fmodule-file=M=%t/M.pcm 15 // RUN: %clang_cc1 -std=c++20 %t/module-vs-module.cpp -fmodule-file=M=%t/M.pcm -DMODULE_INTERFACE -… 16 // RUN: %clang_cc1 -std=c++20 %t/module-vs-module.cpp -fmodule-file=M=%t/M.pcm -DMODULE_INTERFACE -… 18 // RUN: %clang_cc1 -std=c++20 %t/module-vs-module.cpp -fmodule-file=M=%t/M.pcm -emit-module-interfa… 19 // RUN: %clang_cc1 -std=c++20 %t/module-vs-module.cpp -fmodule-file=M=%t/M.pcm -fmodule-file=N=%t/N… 21 // RUN: %clang_cc1 -std=c++20 %t/module-vs-module.cpp -fmodule-file=M=%t/M.pcm -fmodule-file=N=%t/N… [all …]
|
/llvm-project/clang/include/clang/Basic/ |
H A D | Module.h | 1 //===- Module.h - Describe a module -----------------------------*- C++ -*-===// 10 /// Defines the clang::Module class, which describes a module in the 54 /// Describes the name of a module. 57 /// The signature of a module, which is a hash of the AST content. 103 /// Required to construct a Module. 106 /// of all Module instances. 112 /// Describes a module or submodule. 114 /// Aligned to 8 bytes to allow for llvm::PointerIntPair<Module *, [all...] |
/llvm-project/clang/test/Modules/ |
H A D | target-features.m | 9 …ple aarch64-unknown-unknown -fmodules -fmodules-cache-path=%t -fimplicit-module-maps -I %S/Inputs … 13 …riple armv7-unknown-unknown -fmodules -fmodules-cache-path=%t -fimplicit-module-maps -I %S/Inputs … 15 …ple aarch64-unknown-unknown -fmodules -fmodules-cache-path=%t -fimplicit-module-maps -I %S/Inputs … 17 …triple i386-unknown-unknown -fmodules -fmodules-cache-path=%t -fimplicit-module-maps -I %S/Inputs … 19 …iple x86_64-unknown-unknown -fmodules -fmodules-cache-path=%t -fimplicit-module-maps -I %S/Inputs … 21 …ple riscv32-unknown-unknown -fmodules -fmodules-cache-path=%t -fimplicit-module-maps -I %S/Inputs … 23 …ple riscv64-unknown-unknown -fmodules -fmodules-cache-path=%t -fimplicit-module-maps -I %S/Inputs … 28 // AARCH32-NOT: module 'TargetFeatures' requires 29 // AARCH64-NOT: module 'TargetFeatures' requires 30 // X86_32-NOT: module 'TargetFeatures' requires [all …]
|
H A D | exponential-paths.cpp | 6 // Build module map with 40 modules; two layers with importing and re-exporting 9 // RUN: echo 'module a0 { header "a0.h" export * }' > %t/module.modulemap 10 // RUN: echo 'module b0 { header "b0.h" export * }' >> %t/module.modulemap 11 // RUN: echo 'module a1 { header "a1.h" export * }' >> %t/module.modulemap 12 // RUN: echo 'module b1 { header "b1.h" export * }' >> %t/module.modulemap 13 // RUN: echo 'module a2 { header "a2.h" export * }' >> %t/module.modulemap 14 // RUN: echo 'module b2 { header "b2.h" export * }' >> %t/module.modulemap 15 // RUN: echo 'module a3 { header "a3.h" export * }' >> %t/module.modulemap 16 // RUN: echo 'module b3 { header "b3.h" export * }' >> %t/module.modulemap 17 // RUN: echo 'module a4 { header "a4.h" export * }' >> %t/module.modulemap [all …]
|
H A D | rebuild.m | 3 // 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 10 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash -… 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=%… [all …]
|
H A D | requires.m | 2 …_cc1 -Rmodule-include-translation -Wno-private-module -fmodules-cache-path=%t -fmodules -fimplicit… 3 …_cc1 -Rmodule-include-translation -Wno-private-module -fmodules-cache-path=%t -fmodules -fimplicit… 5 // expected-error@DependsOnModule.framework/Modules/module.modulemap:7 {{module 'DependsOnModule.CX… 6 @import DependsOnModule.CXX; // expected-note {{module imported here}} 8 // expected-error@DependsOnModule.framework/Modules/module.modulemap:15 {{module 'DependsOnModule.N… 9 @import DependsOnModule.NotObjC; // expected-note {{module imported here}} 11 // expected-error@DependsOnModule.framework/Modules/module.modulemap:22 {{module 'DependsOnModule.C… 12 @import DependsOnModule.CustomReq2; // expected-note {{module imported here}} 15 // expected-error@module.modulemap:* {{module 'RequiresWithMissingHeader.HeaderBefore' requires fea… 16 @import RequiresWithMissingHeader.HeaderBefore; // expected-note {{module imported here}} [all …]
|
H A D | reserved-names-1.cppm | 5 // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify=expected,loud %t/module.cpp 6 … %clang_cc1 -std=c++20 -fsyntax-only -verify=expected -Wno-reserved-module-identifier %t/module.cpp 8 // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify=expected -Wno-reserved-module-identifier %t/imp… 10 // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify=expected -DNODIAGNOSTICS -Wno-reserved-module-i… 12 // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify=expected -DNODIAGNOSTICS -Wno-reserved-module-i… 14 // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify=expected -DNODIAGNOSTICS -Wno-reserved-module-i… 16 // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify=expected -Wno-reserved-module-identifier %t/std… 18 // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify=expected -Wno-reserved-module-identifier %t/std… 20 // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify=expected -Wno-reserved-module-identifier %t/std… 22 // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify=expected -Wno-reserved-module-identifier %t/std… [all …]
|
H A D | Werror.m | 5 // Initial module build (-Werror=header-guard) 6 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ 9 // RUN: cp %t/Module.pcm %t-saved/Module.pcm 12 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ 14 // RUN: diff %t/Module.pcm %t-saved/Module.pcm 17 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ 20 // RUN: not diff %t/Module.pcm %t-saved/Module.pcm 21 // RUN: cp %t/Module.pcm %t-saved/Module.pcm 24 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ 27 // RUN: diff %t/Module.pcm %t-saved/Module.pcm [all …]
|
H A D | target-platform-features.m | 7 // RUN: echo "module RequiresMacOS {" >> %t/InputsA/module.modulemap 8 // RUN: echo " requires macos" >> %t/InputsA/module.modulemap 9 // RUN: echo "}" >> %t/InputsA/module.modulemap 10 // RUN: echo "module RequiresNotiOS {" >> %t/InputsA/module.modulemap 11 // RUN: echo " requires !ios" >> %t/InputsA/module.modulemap 12 // RUN: echo "}" >> %t/InputsA/module.modulemap 13 // RUN: echo "module RequiresMain {" >> %t/InputsA/module.modulemap 14 // RUN: echo " module SubRequiresNotiOS {" >> %t/InputsA/module.modulemap 15 // RUN: echo " requires !ios" >> %t/InputsA/module.modulemap 16 // RUN: echo " }" >> %t/InputsA/module.modulemap [all …]
|
/llvm-project/clang/docs/ |
H A D | Modules.rst | 80 However, this module import behaves quite differently from the corresponding ``#include <stdio.h>``: when the compiler sees the module import above, it loads a binary representation of the ``std.io`` module and makes its API available to the application directly. Preprocessor definitions that precede the import declaration have no impact on the API provided by ``std.io``, because the module itself was compiled as a separate, standalone module. Additionally, any linker flags required to use the ``std.io`` module will automatically be provided when the module is imported [#]_ 83 * **Compile-time scalability**: The ``std.io`` module is only compiled once, and importing the module into a translation unit is a constant-time operation (independent of module syste [all...] |
/llvm-project/clang/lib/Headers/ |
H A D | module.modulemap | 1 /*===---- module.modulemap - intrinsics module map -------------------------=== 10 module _Builtin_intrinsics [system] [extern_c] { 11 explicit module altivec { 16 explicit module arm { 19 explicit module acle { 24 explicit module neon { 31 explicit module sve { 38 explicit module intel { 71 explicit module mm_mallo [all...] |
/llvm-project/clang/include/ |
H A D | module.modulemap | 1 module Clang_C { 3 module * { export * } 6 module Clang_Analysis { 12 module * { export * } 21 module Clang_AST { 30 module * { export * } 33 module Clang_ASTMatchers { requires cplusplus umbrella "clang/ASTMatchers" module * { export * } } 35 module Clang_Basic { 87 module * { expor [all...] |
/llvm-project/clang/lib/Sema/ |
H A D | SemaModule.cpp | 24 static void checkModuleImportContext(Sema &S, Module *M, 60 // of the hierarchical access path for a clang module. However for C++20 77 /// the \param Imported module unit is in the same module with the \param 80 /// primary module interface unit corresponding to the module \param 81 /// CurrentModule. Since currently it is expensive to decide whether two module 82 /// units come from the same module by comparing the module name. 84 isImportingModuleUnitFromSameModule(ASTContext &Ctx, Module *Importe [all...] |