/llvm-project/lld/test/ELF/ |
H A D | build-id.s | 3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t 5 # RUN: ld.lld --build-id %t -o %t2 6 # RUN: llvm-readobj -S %t2 | FileCheck -check-prefix=ALIGN %s 8 # RUN: ld.lld --build-id %t -o %t2 9 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=SHA1 %s 10 # RUN: ld.lld --build-id %t -o %t2 --threads=1 11 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=SHA1 %s 13 # RUN: ld.lld --build-id=fast %t -o %t2 14 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=FAST %s 16 # RUN: ld.lld --build-id=md5 %t -o %t2 [all …]
|
H A D | arm-cmse-diagnostics.s | 4 // RUN: rm -rf %t && split-file %s %t && cd %t 7 // RUN: llvm-mc -arm-add-build-attributes -filetype=obj --triple=thumbv8m.base lib -o lib.o 8 // RUN: llvm-mc -arm-add-build-attributes -filetype=obj --triple=thumbv8m.base app -I %S/Inputs -o … 9 // RUN: llvm-objcopy --redefine-sym=entry7_duplicate=entry6_duplicate lib.o 10 // RUN: not ld.lld --cmse-implib --in-implib=lib.o app.o -o /dev/null 2>&1 | FileCheck %s --check-p… 11 // RUN: not ld.lld --cmse-implib --in-implib=lib.o --in-implib=lib.o app.o -o /dev/null 2>&1 | File… 12 // RUN: not ld.lld --in-implib=lib.o app.o -o /dev/null 2>&1 | FileCheck %s --check-prefixes=ERR_IN… 13 // RUN: not ld.lld --out-implib=out.lib app.o -o /dev/null 2>&1 | FileCheck %s --check-prefixes=ERR… 14 // RUN: not ld.lld --out-implib=out.lib --in-implib=lib.o app.o -o /dev/null 2>&1 | FileCheck %s --… 23 // ERR_IN_IMPLIB: error: --in-implib may not be used without --cmse-implib [all …]
|
H A D | relocatable-build-id.s | 2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o 3 # RUN: ld.lld --build-id=0xcafebabe -o %t2.o %t1.o -r 4 # RUN: ld.lld --build-id=0xdeadbeef -o %t.exe %t2.o 5 # RUN: llvm-objdump -s %t.exe | FileCheck %s 7 ## The default --build-id=none removes .note.gnu.build-id input sections. 8 # RUN: ld.lld %t2.o -o %t.none 9 # RUN: llvm-readelf -S %t.none | FileCheck %s --check-prefix=NO 10 # RUN: ld.lld --build-id=none %t2.o -o %t.none2 13 # CHECK: Contents of section .note.gnu.build-id: 14 # CHECK-NOT: cafebabe [all …]
|
/llvm-project/lld/docs/MachO/ |
H A D | index.rst | 1 Mach-O LLD Port 4 LLD is a linker from the LLVM project that is a drop-in replacement 7 will describe the Mach-O port. 10 -------- 12 - LLD is a drop-in replacement for Apple's Mach-O linker, ld64, that accepts the 15 - LLD is very fast. When you link a large program on a multicore 16 machine, you can expect that LLD runs more than twice as fast as the ld64 20 -------- 22 LLD is available as a pre-built binary by going to the `latest release <https://github.com/llvm/llv… 23 downloading the appropriate bundle (``clang+llvm-<version>-<your architecture>-<your platform>.tar.… [all …]
|
/llvm-project/.github/workflows/ |
H A D | docs.yml | 4 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 name: "Test documentation build" 14 - 'main' 16 - 'llvm/docs/**' 17 - 'clang/docs/**' 18 - 'clang/include/clang/Basic/AttrDocs.td' 19 - 'clan [all...] |
/llvm-project/llvm/utils/gn/secondary/lld/tools/lld/ |
H A D | BUILD.gn | 1 import("//llvm/utils/gn/build/driver_executable.gni") 2 import("//llvm/utils/gn/build/symlink_or_copy.gni") 5 "lld-link", 6 "ld.lld", 7 "ld64.lld", 8 "wasm-ld", 12 deps = [ ":lld" ] 13 source = "lld" 18 # //:lld depends on this symlink target, see comment in //BUILD.gn. 20 deps = [ ":lld" ] [all …]
|
/llvm-project/libc/docs/ |
H A D | full_host_build.rst | 4 Full Host Build 16 In this document, we will present a recipe to build the full libc for the host. 17 When we say *build the libc for the host*, the goal is to build the libc for 19 build for developing LLVM-libc, then we will explain how to build LLVM-libc as 22 Configure the build for development 26 Below is the list of commands for a simple recipe to build LLV [all...] |
/llvm-project/llvm/utils/gn/secondary/lld/test/ |
H A D | BUILD.gn | 3 import("//llvm/utils/gn/build/libs/xml/enable.gni") 4 import("//llvm/utils/gn/build/libs/zlib/enable.gni") 5 import("//llvm/utils/gn/build/libs/zstd/enable.gni") 6 import("//llvm/utils/gn/build/write_cmake_config.gni") 7 import("//llvm/utils/llvm-lit/lit_path_function.gni") 20 rebase_path(get_label_info("//lld", "target_out_dir"), dir), 21 "LLD_SOURCE_DIR=" + rebase_path("//lld", dir), 24 # See comment for Windows solink in llvm/utils/gn/build/toolchain/BUILD.gn 34 # Fully-qualifie [all...] |
/llvm-project/lld/docs/ |
H A D | index.rst | 1 LLD - The LLVM Linker 4 LLD is a linker from the LLVM project that is a drop-in replacement 8 The linker supports ELF (Unix), PE/COFF (Windows), Mach-O (macOS) and 9 WebAssembly in descending order of completeness. Internally, LLD consists of 16 ---- 85 Build global() chapter [all...] |
H A D | windows_support.rst | 4 .none { background-color: #FFCCCC } 5 .partial { background-color: #FFFF99 } 6 .good { background-color: #CCFF99 } 17 LLD supports Windows operating system. When invoked as ``lld-link.exe`` or with 18 ``-flavor link``, the driver for Windows operating system is used to parse 19 command line options, and it drives further linking processes. LLD accepts 23 The current status is that LLD is used to link production builds of large 24 real-world binaries such as Firefox and Chromium. 34 :good:`Done`. LLD can read import libraries needed to link against DLL. Both 35 export-by-name and export-by-ordinal are supported. [all …]
|
/llvm-project/.github/workflows/containers/github-action-ci/ |
H A D | stage1.Dockerfile |
|
/llvm-project/lld/test/COFF/ |
H A D | rsds.test | 1 # RUN: yaml2obj %s -o %t.obj 3 # RUN: rm -f %t.dll %t.pdb 4 # RUN: lld-link /debug /pdbaltpath:test.pdb /dll /out:%t.dll /entry:DllMain %t.obj 5 # RUN: llvm-readobj --coff-debug-directory %t.dll > %t.1.txt 6 # RUN: lld-link /debug /pdbaltpath:test.pdb /dll /out:%t.dll /entry:DllMain %t.obj 7 # RUN: llvm-readobj --coff-debug-directory %t.dll > %t.2.txt 10 # RUN: rm -f %t.dll %t.pdb 11 # RUN: lld-link /debug /pdb:%t1.pdb /dll /out:%t.dll /entry:DllMain %t.obj 12 # RUN: llvm-readobj --coff-debug-directory %t.dll > %t.3.txt 13 # RUN: lld-link /debug /pdb:%t2.pdb /dll /out:%t.dll /entry:DllMain %t.obj [all …]
|
H A D | pdb-type-server-missing.yaml | 2 # adjacent type server PDB. Test that LLD fails gracefully on it. 5 # RUN: yaml2obj %s -o %t1.obj 6 # RUN: yaml2obj %p/Inputs/pdb-type-server-missing-2.yaml -o %t2.obj 7 # RUN: lld-link %t1.obj %t2.obj -out:%t.exe -debug -pdb:%t.pdb -nodefaultlib -entry:main 2>&1 | Fil… 8 # RUN: lld-link %t1.obj %t2.obj -out:%t.exe -debug:ghash -pdb:%t.pdb -nodefaultlib -entry:main 2>&1… 9 …lld-link %t1.obj %t2.obj -out:%t.exe -debug -pdb:%t.pdb -nodefaultlib -entry:main /ignore:4099 2>&… 10 … RUN: not lld-link %t1.obj %t2.obj -out:%t.exe -debug -pdb:%t.pdb -nodefaultlib -entry:main /WX 2>… 11 …lld-link %t1.obj %t2.obj -out:%t.exe -debug -pdb:%t.pdb -nodefaultlib -entry:main /ignore:4099 /WX… 14 # WARN-NEXT: [[MSG]] 16 # IGNORE-NOT: warning: Cannot use debug info for '{{.*}}.obj' [LNK4099] [all …]
|
/llvm-project/llvm/utils/release/ |
H A D | build_llvm_release.bat | 8 echo used for the releases at https://github.com/llvm/llvm-project/releases
10 echo Usage: build_llvm_release.bat --version ^<version^> [--x86,--x64, --arm64] [- [all...] |
/llvm-project/flang/ |
H A D | .drone.star | 4 "name": "%s-clang" % arch, 10 …"apt-get update && apt-get install -y clang-8 cmake ninja-build lld-8 llvm-8-dev libc++-8-dev libc… 11 … "git clone --depth=1 -b f18 https://github.com/flang-compiler/f18-llvm-project.git llvm-project", 12 "mkdir llvm-project/build && cd llvm-project/build", 13 …-8 CXX=clang++-8 CXXFLAGS="-stdlib=libc++" LDFLAGS="-fuse-ld=lld" cmake -GNinja -DCMAKE_BUILD_TYPE… 16 "mkdir build && cd build", 17 …-8 CXX=clang++-8 CXXFLAGS="-UNDEBUG -stdlib=libc++" LDFLAGS="-fuse-ld=lld" cmake -GNinja -DCMAKE_B… 18 "ninja -j8", 19 "ctest --output-on-failure -j24", 20 "ninja check-all", [all …]
|
/llvm-project/bolt/docs/ |
H A D | OptimizingClang.md | 11 large applications measuring over hundreds of megabytes in size. However, medium-sized 12 programs can benefit too. Clang, one of the most popular open-source C/C++ compilers, 15 misses and can be significantly improved with BOLT, even on top of profile-guided and 16 link-time optimizations. 18 In this tutorial we will first build Clang with PGO and LTO, and then will show steps on how to 20 the compile-time performance gains are coming from, and verify that the speed-ups are 25 The process of getting Clang sources and performing the build is very similar to the 27 on how to obtain and build Clang in [Bootstrapping Clang- [all...] |
/llvm-project/lld/ |
H A D | CMakeLists.txt | 2 set(LLVM_SUBPROJECT_TITLE "LLD") 10 # If we are not building as a part of LLVM, build LLD as an 13 project(lld) project 32 set(LLVM_BINARY_DIR "${LLVM_BINARY_DIR}" CACHE PATH "Path to LLVM build tree") 35 find_program(LLVM_TABLEGEN_EXE "llvm-tblgen" ${LLVM_TOOLS_BINARY_DIR} 74 …message(FATAL_ERROR "llvm-gtest not found. Please install llvm-gtest or disable tests with -DLLVM_… 79 NAMES llvm-lit lit.py lit 87 set(LIT_ARGS_DEFAULT "-sv") 89 set(LIT_ARGS_DEFAULT "${LIT_ARGS_DEFAULT} --no-progress-bar") 114 "Vendor-specific text for showing with version information.") [all …]
|
/llvm-project/llvm/utils/gn/secondary/ |
H A D | BUILD.gn | 3 import("//llvm/utils/gn/build/toolchain/compiler.gni") 7 "//clang-tools-extra/clangd/test", 8 "//clang-tools-extra/test", 10 "//clang/tools/scan-build", 11 "//compiler-rt", 12 "//compiler-rt/include", 13 "//compiler-r [all...] |
/llvm-project/bolt/ |
H A D | CMakeLists.txt | 25 # standalone build, copied from clang 34 # Assertions should follow llvm-config's. 42 find_program(LLVM_TABLEGEN_EXE "llvm-tblgen" ${LLVM_TOOLS_BINARY_DIR} 59 # Determine default set of targets to build -- the intersection of 80 message(STATUS "Targeting ${tgt} in llvm-bolt") 99 `--instrumentation-binpat [all...] |
/llvm-project/clang/cmake/caches/ |
H A D | CrossWinToARMLinux.cmake | 3 # Set up a CMakeCache for a cross Windows to ARM Linux toolchain build. 5 # This cache file can be used to build a cross toolchain to ARM Linux 8 # NOTE: the build requires a development ARM Linux root filesystem to use 11 # The build generates a proper clang configuration file with stored 12 # --sysroot argument for specified target triple. Also it is possible 14 # -DCLANG_CONFIG_FILE_USER_DIR=<full-path-to-clan [all...] |
H A D | Release.cmake | 1 # Plain options configure the first build. 2 # BOOTSTRAP_* options configure the second build. 3 # BOOTSTRAP_BOOTSTRAP_* options configure the third build. 4 # PGO Builds have 3 stages (stage1, stage2-instrumented, stage2) 5 # non-PGO Builds have 2 stages (stage1, stage2) 17 # This sets the varaible for the final stage in non-PGO builds and in 18 # the stage2-instrumented stage for PGO builds. 28 # on the command line via -D, but you need to do this before you pass this 29 # cache file to CMake via -C. e.g. 31 # cmake - [all...] |
/llvm-project/clang/docs/ |
H A D | ThinLTO.rst | 13 runtime performance through whole-program analysis and cross-module 22 locations for later cross-module function importing. Fast and efficient 23 whole-program analysis is then performed on the combined summary index. 34 <http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html>`_. 43 ---------- 49 `build a recent version of clang and LLVM 53 ------- 59 - **gold (via the gold-plugin)**: 63 - **ld64**: 65 - **lld**: [all …]
|
/llvm-project/llvm/docs/ |
H A D | HowToBuildWindowsItaniumPrograms.rst | 2 How to build Windows Itanium applications. 18 * libc++-abi. 23 * LLD 25 Note: compiler-rt is not used. This functionality is supplied by the MS VCRT. 31 * Clang with support for the windows-itanium triple. 32 * COFF LLD with support for the -autoimport switch. 37 SJLJ exceptions, "-fsjlj-exceptions", are the only currently supported model. 39 link.exe (the MS linker) is unsuitable as it doesn't support auto-importin [all...] |
H A D | HowToCrossCompileBuiltinsOnArm.rst | 2 How to Cross Compile Compiler-rt Builtins For Arm 9 of compiler-rt for an Arm target, from an x86_64 Linux machine. 12 apply to other targets supported by compiler-rt. Further contributions for other 22 In this use case we'll be using cmake on a Debian-based Linux system, 23 cross-compiling from an x86_64 host to a hard-float Armv7-A target. We'll be 27 * ``A build of LLVM/clang for the llvm-tools and llvm-config`` 29 * ``compiler-rt sources`` 30 * ``The qemu-arm user mode emulator`` 31 * ``An arm-linux-gnueabihf sysroot`` 35 See https://compiler-rt.llvm.org/ for more information about the dependencies [all …]
|
/llvm-project/lldb/test/ |
H A D | CMakeLists.txt | 14 # Lit uses psutil to do per-test timeouts. 35 # In order to run check-lldb-* we need the correct map_config directives in 36 # llvm-lit. Because this is a standalone build, LLVM doesn't know about LLDB, 37 # and the lldb mappings are missing. We build our own llvm-lit, and tell LLVM 38 # to use the llvm-lit in the lldb build directory. 39 if (EXISTS ${LLVM_MAIN_SRC_DIR}/utils/llvm-li [all...] |