Home
last modified time | relevance | path

Searched refs:compiler (Results 1 – 25 of 1339) sorted by relevance

12345678910>>...54

/llvm-project/clang/unittests/CodeGen/
H A DTestCompiler.h30 clang::CompilerInstance compiler;
37 compiler.getLangOpts() = LO;
38 compiler.getCodeGenOpts() = CGO;
39 compiler.createDiagnostics(*llvm::vfs::getRealFileSystem());
46 compiler.getTargetOpts().Triple = Tr.getTriple();
47 compiler.setTarget(clang::TargetInfo::CreateTargetInfo(
48 compiler.getDiagnostics(),
49 std::make_shared<clang::TargetOptions>(compiler.getTargetOpts())));
51 const clang::TargetInfo &TInfo = compiler.getTarget();
54 compiler
29 clang::CompilerInstance compiler; global() member
[all...]
/llvm-project/clang/tools/scan-build-py/tests/functional/exec/
H A Dmain.c115 char *const compiler = "/usr/bin/cc"; in call_execv() local
121 FORK(execv(compiler, argv);) in call_execv()
128 char *const compiler = "/usr/bin/cc"; in call_execve() local
129 char *const argv[] = {compiler, "-c", file, 0}; in call_execve()
135 FORK(execve(compiler, argv, envp);) in call_execve()
142 char *const compiler = "cc"; in call_execvp() local
143 char *const argv[] = {compiler, "-c", file, 0}; in call_execvp()
148 FORK(execvp(compiler, argv);) in call_execvp()
155 char *const compiler = "cc"; in call_execvP() local
156 char *const argv[] = {compiler, "-c", file, 0}; in call_execvP()
[all …]
/llvm-project/clang/runtime/
H A DCMakeLists.txt25 set(COMPILER_RT_SRC_ROOT ${LLVM_MAIN_SRC_DIR}/projects/compiler-rt)
38 # Add compiler-rt as an external project.
39 set(COMPILER_RT_PREFIX ${CMAKE_BINARY_DIR}/projects/compiler-rt)
41 set(STAMP_DIR ${CMAKE_CURRENT_BINARY_DIR}/compiler-rt-stamps/)
42 set(BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/compiler-rt-bins/)
44 add_custom_target(compiler-rt-clear
47 COMMENT "Clobberring compiler-rt build and stamp directories"
72 ExternalProject_Add(compiler-rt
108 ExternalProject_Add_Step(compiler-rt clean
110 COMMENT "Cleaning compiler
[all...]
/llvm-project/compiler-rt/include/
H A DCMakeLists.txt69 # Copy compiler-rt headers to the build tree.
77 COMMENT "Copying compiler-rt's ${f}...")
81 add_custom_target(compiler-rt-headers ALL DEPENDS ${out_files})
82 add_dependencies(compiler-rt compiler-rt-headers)
83 set_target_properties(compiler-rt-headers PROPERTIES FOLDER "Compiler-RT/Resources")
87 COMPONENT compiler-rt-headers
92 COMPONENT compiler-rt-headers
98 COMPONENT compiler-rt-headers
103 COMPONENT compiler
[all...]
/llvm-project/llvm/utils/gn/secondary/compiler-rt/lib/
H A DBUILD.gn3 "//compiler-rt/lib/asan:ignorelist($host_toolchain)",
4 "//compiler-rt/lib/builtins",
5 "//compiler-rt/lib/cfi:ignorelist($host_toolchain)",
8 deps += [ "//compiler-rt/lib/msan" ]
11 deps += [ "//compiler-rt/lib/ubsan_minimal" ]
14 deps += [ "//compiler-rt/lib/hwasan" ]
18 "//compiler-rt/lib/asan",
19 "//compiler-rt/lib/profile",
23 deps += [ "//compiler-rt/lib/ubsan" ]
25 deps += [ "//compiler
[all...]
/llvm-project/lldb/packages/Python/lldbsuite/test/builders/
H A Dbuilder.py22 """Returns the compiler in effect the test suite is running with."""
23 compiler = configuration.compiler if configuration.compiler else "clang"
24 compiler = lldbutil.which(compiler)
25 return os.path.abspath(compiler)
102 def getToolchainSpec(self, compiler):
107 cc = compiler if compiler els
99 getCCSpec(self, compiler) global() argument
164 getBuildCommand( self, debug_info, architecture=None, compiler=None, dictionary=None, testdir=None, testname=None, make_targets=None, ) global() argument
[all...]
/llvm-project/llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/tests/
H A DBUILD.gn1 import("//llvm/utils/gn/build/toolchain/compiler.gni")
9 deps = [ "//compiler-rt/lib/scudo/standalone:sources" ]
45 "//compiler-rt/lib/scudo/standalone:c_wrapper_sources",
46 "//compiler-rt/lib/scudo/standalone:sources",
59 "//compiler-rt/lib/scudo/standalone:c_wrapper_sources",
60 "//compiler-rt/lib/scudo/standalone:cxx_wrapper_sources",
61 "//compiler-rt/lib/scudo/standalone:sources",
77 "//compiler-rt/lib/scudo/standalone:c_wrapper_sources",
78 "//compiler-rt/lib/scudo/standalone:sources",
/llvm-project/llvm/utils/gn/secondary/compiler-rt/lib/asan/
H A DBUILD.gn1 import("//compiler-rt/target.gni")
174 "//compiler-rt/lib/interception:sources",
175 "//compiler-rt/lib/lsan:common_sources",
176 "//compiler-rt/lib/sanitizer_common:sources",
177 "//compiler-rt/lib/ubsan:cxx_sources",
178 "//compiler-rt/lib/ubsan:sources",
198 "//compiler-rt/lib/interception:sources",
199 "//compiler-rt/lib/lsan:common_sources",
200 "//compiler-rt/lib/sanitizer_common:sources",
201 "//compiler
[all...]
/llvm-project/clang/cmake/caches/
H A DREADME.txt31 The PGO CMake cache can be used to generate a multi-stage instrumented compiler.
39 Builds a stage1 x86 compiler, runtime, and required tools (llvm-config,
40 llvm-profdata) then uses that compiler to build an instrumented stage2 compiler.
43 Depends on "stage2-instrumented" and will use the instrumented compiler to
48 compiler with the stage2 profdata to build a PGO-optimized compiler.
51 Depends on stage2 and runs check-llvm using the stage3 compiler.
54 Depends on stage2 and runs check-clang using the stage3 compiler.
57 Depends on stage2 and runs check-all using the stage3 compiler.
60 Depends on stage2 and runs the test-suite using the stage3 compiler (requires
73 This is useful for finding non-determinism the compiler by verifying that stage2
/llvm-project/llvm/docs/
H A DAdvancedBuilds.rst37 In a simple two-stage bootstrap build, we build clang using the system compiler,
78 build using the compiler installed on the host, and a stage2 build is built
79 using the stage1 compiler. This nomenclature holds up to more stages too. In
88 The stage1 compiler is a host-only compiler with some options set. The stage1
89 compiler is a balance of optimization vs build time because it is a throwaway.
90 The stage2 compiler is the fully optimized compiler intended to ship to users.
94 You can build an Apple Clang compiler using the following commands:
101 This CMake invocation configures the stage1 host compiler, and sets
106 compiler and required tools, then configures and builds the stage2 compiler
120 At a high level, the way PGO works is that you build an instrumented compiler,
[all …]
/llvm-project/llvm/utils/gn/secondary/compiler-rt/test/lsan/
H A DBUILD.gn1 import("//compiler-rt/target.gni")
2 import("//compiler-rt/test/test.gni")
4 import("//llvm/utils/gn/build/toolchain/compiler.gni")
20 "COMPILER_RT_BINARY_DIR=" + rebase_path("$root_gen_dir/compiler-rt"),
29 "//compiler-rt/include($host_toolchain)",
30 "//compiler-rt/lib/asan",
31 "//compiler-rt/lib/lsan:common_sources",
32 "//compiler-rt/lib/profile",
33 "//compiler-rt/test:lit_common_configured",
/llvm-project/compiler-rt/cmake/
H A Dbase-config-ix.cmake22 # Top level target used to build all compiler-rt libraries.
23 add_custom_target(compiler-rt ALL)
24 add_custom_target(install-compiler-rt)
25 add_custom_target(install-compiler-rt-stripped)
26 set_property(TARGET compiler-rt PROPERTY FOLDER "Compiler-RT/Metatargets")
29 install-compiler-rt
30 install-compiler-rt-stripped
35 # Setting these variables from an LLVM build is sufficient that compiler-rt can
42 # Setup the paths where compiler-rt runtimes and headers should be stored.
46 option(COMPILER_RT_INCLUDE_TESTS "Generate and build compiler
[all...]
/llvm-project/llvm/utils/gn/secondary/compiler-rt/test/hwasan/
H A DBUILD.gn1 import("//compiler-rt/target.gni")
2 import("//compiler-rt/test/test.gni")
4 import("//llvm/utils/gn/build/toolchain/compiler.gni")
21 "COMPILER_RT_BINARY_DIR=" + rebase_path("$root_gen_dir/compiler-rt"),
38 "//compiler-rt/include($host_toolchain)",
39 "//compiler-rt/lib/cfi:ignorelist($host_toolchain)",
40 "//compiler-rt/lib/hwasan:hwasan_preinit",
41 "//compiler-rt/lib/hwasan:hwasan_shared",
42 "//compiler-rt/test:lit_common_configured",
70 deps = [ "//compiler
[all...]
/llvm-project/llvm/utils/gn/secondary/compiler-rt/
H A DBUILD.gn3 import("//llvm/utils/gn/build/toolchain/compiler.gni")
5 # In the GN build, compiler-rt is always built by just-built clang and lld.
21 group("compiler-rt") {
22 deps = [ "//compiler-rt/include($host_toolchain)" ]
24 deps += [ "//compiler-rt/lib($toolchain)" ]
31 deps += [ "//compiler-rt/lib/builtins(//llvm/utils/gn/build/toolchain:stage2_ios_aarch64)" ]
34 deps += [ "//compiler-rt/lib/builtins(//llvm/utils/gn/build/toolchain:stage2_iossim_x64)" ]
/llvm-project/llvm/utils/gn/secondary/compiler-rt/test/asan/
H A DBUILD.gn1 import("//compiler-rt/target.gni")
2 import("//compiler-rt/test/test.gni")
4 import("//llvm/utils/gn/build/toolchain/compiler.gni")
22 "COMPILER_RT_BINARY_DIR=" + rebase_path("$root_gen_dir/compiler-rt"),
36 "//compiler-rt/include($host_toolchain)",
37 "//compiler-rt/lib/asan",
38 "//compiler-rt/lib/asan:ignorelist($host_toolchain)",
39 "//compiler-rt/lib/profile",
40 "//compiler-rt/test:lit_common_configured",
/llvm-project/lldb/test/Shell/helper/
H A Dbuild.py249 def find_toolchain(compiler, tools_dir): argument
250 if compiler == "msvc":
252 if compiler == "clang-cl":
254 if compiler == "gcc":
256 if compiler == "clang":
258 if compiler == "any":
272 file = os.path.basename(compiler)
275 return ("msvc", compiler)
277 return ("clang-cl", compiler)
279 return ("clang", compiler)
[all …]
/llvm-project/clang/unittests/Frontend/
H A DFrontendActionTest.cpp92 CompilerInstance compiler; in TEST()
93 compiler.setInvocation(std::move(invocation)); in TEST()
94 compiler.createDiagnostics(*llvm::vfs::getRealFileSystem()); in TEST()
97 ASSERT_TRUE(compiler.ExecuteAction(test_action)); in TEST()
112 CompilerInstance compiler; in TEST()
113 compiler.setInvocation(std::move(invocation)); in TEST()
114 compiler.createDiagnostics(*llvm::vfs::getRealFileSystem()); in TEST()
117 ASSERT_TRUE(compiler.ExecuteAction(test_action)); in TEST()
139 CompilerInstance compiler; in TEST()
140 compiler in TEST()
91 CompilerInstance compiler; TEST() local
111 CompilerInstance compiler; TEST() local
138 CompilerInstance compiler; TEST() local
[all...]
/llvm-project/lldb/test/API/test_utils/
H A DTestDecorators.py36 @expectedFailureAll(compiler=re.compile(".*"))
41 @expectedFailureAll(compiler=no_match(re.compile(".*")))
84 @expectedFailureAll(compiler="fake", debug_info="dwarf")
88 @skipIf(compiler="fake", debug_info="dwarf")
99 @expectedFailureAll(compiler=re.compile(".*"))
104 @expectedFailureAll(compiler=no_match(re.compile(".*")))
/llvm-project/openmp/
H A DREADME.rst15 - When calling CMake for the first time, all needed compiler options must be
16 specified on the command line. After this initial call to CMake, the compiler
37 - Notice in the example how the compiler definitions are only specified for an
91 **CMAKE_C_COMPILER** = <C compiler name>
92 Specify the C compiler.
94 **CMAKE_CXX_COMPILER** = <C++ compiler name>
95 Specify the C++ compiler.
97 **CMAKE_Fortran_COMPILER** = <Fortran compiler name>
98 Specify the Fortran compiler. This option is only needed when
100 compiler is not needed during the build.
[all …]
/llvm-project/clang/test/Modules/
H A Dload-module-with-errors.m4 // pcherror-error-re@* {{module file '{{.*}}use_error_a.pcm' contains compiler errors}}
19 // RUN: %clang_cc1 -fmodules -fallow-pcm-with-compiler-errors \
22 // RUN: %clang_cc1 -fmodules -fallow-pcm-with-compiler-errors \
26 // RUN: %clang_cc1 -fmodules -fallow-pcm-with-compiler-errors \
32 // RUN: %clang_cc1 -fmodules -fallow-pcm-with-compiler-errors \
40 // RUN: %clang_cc1 -fmodules -fallow-pcm-with-compiler-errors \
52 // RUN: %clang_cc1 -fmodules -fallow-pcm-with-compiler-errors \
64 // RUN: grep "module file .* contains compiler errors"
74 // RUN: %clang_cc1 -fsyntax-only -fmodules -fallow-pcm-with-compiler-errors \
82 // RUN: %clang_cc1 -fsyntax-only -fmodules -fallow-pcm-with-compiler
[all...]
/llvm-project/compiler-rt/test/
H A DCMakeLists.txt30 # When ANDROID, we build tests with the host compiler (i.e. CMAKE_C_COMPILER),
38 compiler-rt-headers sancov split-file llvm-strip)
49 umbrella_lit_testsuite_begin(check-compiler-rt)
104 # ShadowCallStack does not yet provide a runtime with compiler-rt, the tests
112 add_custom_target(compiler-rt-test-depends)
113 set_target_properties(compiler-rt-test-depends PROPERTIES FOLDER "Compiler-RT/Tests")
115 add_dependencies(compiler-rt-test-depends ${LLVM_COMPILER_RT_LIT_DEPENDS})
117 umbrella_lit_testsuite_end(check-compiler-rt)
123 add_dependencies(check-all check-compiler-rt)
/llvm-project/compiler-rt/cmake/Modules/
H A DCompilerRTMockLLVMCMakeConfig.cmake2 # compiler-rt can successfully configure itself when a LLVM toolchain is
5 # The motivation for this is to be able to generate the compiler-rt
26 # Various bits of compiler-rt depend on the `LLVM_TARGET_TRIPLE` variable
34 # compiler.
43 # Try asking the compiler for its default target triple.
61 "Fetching target triple from compiler \"${CMAKE_C_COMPILER_ID}\" "
67 message(FATAL_ERROR "Fetching target triple from compiler failed")
78 # Some compiler-rt CMake code needs to call code in this file.
/llvm-project/libc/docs/
H A Dfull_cross_build.rst27 compiler of their choice. One should use this recipe if their compiler can
30 compiler and the libc build tools for the host first, and then use them to
42 In the *standalone crossbuild* recipe, the system compiler or a custom compiler
47 keep in mind is that the compiler used should be capable of building for the
60 $> C_COMPILER=<C compiler> # For example "clang"
61 $> CXX_COMPILER=<C++ compiler> # For example "clang++"
98 In this recipe, the clang compiler is built automatically before building
109 $> C_COMPILER=<C compiler> # Fo
[all...]
/llvm-project/compiler-rt/docs/
H A DTestingGuide.rst11 This document is the reference manual for the compiler-rt modifications to the
18 The compiler-rt testing infrastructure contains regression tests which are run
25 The regressions tests are in the "compiler-rt" module and are normally checked
26 out in the directory ``llvm/projects/compiler-rt/test``. Use ``make check-all``
27 to run the regression tests after building compiler-rt.
36 behaviour of this is somewhat quirky in compiler-rt. There are two main
47 compiler-rt tests since compiler-rt tests may be compiled for multiple targets.
53 To remedy both pitfalls, compiler-rt tests provide a feature string which can
/llvm-project/llvm/test/tools/llvm-reduce/
H A Dreduce-named-metadata.ll10 ; CHECK-INTERESTINGNESS: !opencl.compiler.options = !{{{.*}}![[OCL_COMPILER_OPTIONS:[0-9]+]]}
17 ; CHECK-DAG: CHECK-INTERESTINGNESS: ![[OCL_COMPILER_OPTIONS]] = !{!"some ocl compiler option 1"}
25 ; RESULT: !opencl.compiler.options = !{![[OCL_COMPILER_OPTION:[0-9]+]]}
34 ; RESULT: ![[OCL_COMPILER_OPTION]] = !{!"some ocl compiler option 1"}
43 !opencl.compiler.options = !{!10, !11}
56 !10 = !{!"some ocl compiler option 0"}
57 !11 = !{!"some ocl compiler option 1"}

12345678910>>...54