| /linux/Documentation/translations/zh_CN/kbuild/ |
| H A D | llvm.rst | 9 使用 Clang/LLVM 构建 Linux 12 本文档介绍如何使用 Clang 和 LLVM 工具构建 Linux 内核。 18 `Clang <https://clang.llvm.org/>`_ 和 `LLVM <https://llvm.org/>`_ 工具可 25 `LLVM 是由 C++ 对象实现的工具链组件集合 <https://www.aosabook.org/en/llvm.html>`_。 26 Clang 是 LLVM 的前端,支持 C 语言和内核所需的 GNU C 扩展,其发音为 "klang",而非 29 使用 LLVM 构建 34 make LLVM=1 38 make LLVM=1 ARCH=arm64 40 LLVM= 参数 43 LLVM 有 GNU binutils 工具的替代品。这些工具可以单独启用。以下是支持的 make 变量 [all …]
|
| H A D | kbuild.rst | 322 LLVM section in 环境变量 324 如果该变量设置为 1,Kbuild 将使用 Clang 和 LLVM 工具,而不是 GCC 和 GNU
|
| /linux/Documentation/kbuild/ |
| H A D | llvm.rst | 4 Building Linux with Clang/LLVM 7 This document covers how to build the Linux kernel with Clang and LLVM 15 <https://clang.llvm.org/>`_ and `LLVM <https://llvm.org/>`_ utilities to be 23 `LLVM is a collection of toolchain components implemented in terms of C++ 24 objects <https://www.aosabook.org/en/llvm.html>`_. Clang is a front-end to LLVM 28 Building with LLVM 33 make LLVM=1 37 make LLVM=1 ARCH=arm64 39 The LLVM= argument 42 LLVM has substitutes for GNU binutils utilities. They can be enabled [all …]
|
| /linux/Documentation/translations/zh_CN/rust/ |
| H A D | quick-start.rst | 28 make LLVM=1 rustavailable 80 ``bindgen`` 使用 ``libclang`` (LLVM的一部分)来理解内核中的C代码,这意味着需要安 81 装LLVM;同在开启``LLVM=1`` 时编译内核一样。 89 或者自行构建LLVM,这需要相当长的时间,但并不是一个复杂的过程: 188 make LLVM=1 rust-analyzer 210 用完整的LLVM工具链构建内核是目前支持的最佳设置。即:: 212 make LLVM=1
|
| H A D | arch-support.rst | 13 目前,Rust编译器(``rustc``)使用LLVM进行代码生成,这限制了可以支持的目标架构。此外,对 14 使用LLVM/Clang构建内核的支持也有所不同(请参见 Documentation/kbuild/llvm.rst )。这
|
| H A D | general-information.rst | 32 make LLVM=1 rustdoc 47 make LLVM=1 CLIPPY=1
|
| H A D | coding-guidelines.rst | 31 make LLVM=1 rustfmt 35 make LLVM=1 rustfmtcheck
|
| /linux/tools/scripts/ |
| H A D | Makefile.include | 54 ifneq ($(LLVM),) 55 ifneq ($(filter %/,$(LLVM)),) 56 LLVM_PREFIX := $(LLVM) 57 else ifneq ($(filter -%,$(LLVM)),) 58 LLVM_SUFFIX := $(LLVM) 77 ifneq ($(LLVM),)
|
| /linux/Documentation/dev-tools/ |
| H A D | autofdo.rst | 63 The support requires a Clang compiler LLVM 17 or later. 101 1) Build the kernel on the host machine with LLVM enabled, 104 $ make menuconfig LLVM=1 110 With a configuration that with LLVM enabled, use the following command:: 116 $ make LLVM=1 150 The llvm_profgen tool is included in the LLVM compiler itself. It's 152 the version of Clang. It needs to be the LLVM 19 release of Clang 153 or later, or just from the LLVM trunk. :: 168 $ make LLVM=1 CLANG_AUTOFDO_PROFILE=<profile_file>
|
| H A D | propeller.rst | 27 #. Propeller requires LLVM 19 release or later for Clang/Clang++ 30 #. In addition to LLVM toolchain, Propeller requires a profiling 111 $ make LLVM=1 CLANG_AUTOFDO_PROFILE=<autofdo-profile-name> 162 …$ make LLVM=1 CLANG_AUTOFDO_PROFILE=<profile_file> CLANG_PROPELLER_PROFILE_PREFIX=<propeller_profi…
|
| H A D | container.rst | 109 toolchain image may have ``LLVM=1`` defined. 122 scripts/container -i docker.io/tuxmake/korg-clang LLVM=1 make # won't work 126 scripts/container -i docker.io/tuxmake/korg-clang make LLVM=1 170 scripts/container -i docker.io/tuxmake/korg-clang -- make LLVM=1 defconfig 171 scripts/container -i docker.io/tuxmake/korg-clang -- make LLVM=1 -j$(nproc)
|
| /linux/Documentation/rust/ |
| H A D | quick-start.rst | 11 approach is that, typically, the distribution will match the LLVM used by Rust 14 Another way is using the prebuilt stable versions of LLVM+Rust provided on 16 and fast LLVM toolchains from :ref:`Getting LLVM <getting_llvm>` with versions 18 "latest LLVM" and "matching LLVM" (please see the link for more information). 123 make LLVM=1 RUSTC=rustc-1.80 RUSTDOC=rustdoc-1.80 RUSTFMT=rustfmt-1.80 \ 153 make LLVM=1 rustavailable 211 ``libclang`` (part of LLVM) is used by ``bindgen`` to understand the C code 212 in the kernel, which means LLVM needs to be installed; like when the kernel 213 is compiled with ``LLVM=1``. 222 Otherwise, building LLVM takes quite a while, but it is not a complex process: [all …]
|
| H A D | arch-support.rst | 6 Currently, the Rust compiler (``rustc``) uses LLVM for code generation, 8 support for building the kernel with LLVM/Clang varies (please see 21 ``riscv`` Maintained ``riscv64`` and LLVM/Clang only.
|
| /linux/scripts/ |
| H A D | decode_stacktrace.sh | 22 if [[ -z ${LLVM:-} ]]; then 26 if [[ ${LLVM} == */ ]]; then 27 UTIL_PREFIX=${LLVM}${UTIL_PREFIX} 28 elif [[ ${LLVM} == -* ]]; then 29 UTIL_SUFFIX=${LLVM}
|
| H A D | faddr2line | 67 if [[ "${LLVM}" == *"/" ]]; then 68 UTIL_PREFIX=${LLVM}${UTIL_PREFIX} 69 elif [[ "${LLVM}" == "-"* ]]; then 70 UTIL_SUFFIX=${LLVM}
|
| /linux/tools/testing/selftests/ |
| H A D | lib.mk | 3 ifneq ($(LLVM),) 4 ifneq ($(filter %/,$(LLVM)),) 5 LLVM_PREFIX := $(LLVM) 6 else ifneq ($(filter -%,$(LLVM)),) 7 LLVM_SUFFIX := $(LLVM)
|
| /linux/tools/sched_ext/ |
| H A D | Makefile | 9 ifneq ($(LLVM),) 10 ifneq ($(filter %/,$(LLVM)),) 11 LLVM_PREFIX := $(LLVM) 12 else ifneq ($(filter -%,$(LLVM)),) 13 LLVM_SUFFIX := $(LLVM) 97 ifneq ($(LLVM),)
|
| /linux/Documentation/bpf/ |
| H A D | bpf_devel_QA.rst | 259 cases, including a lot of corner cases that LLVM BPF back end may 361 Q: Features changing BPF JIT and/or LLVM 364 that would require BPF JIT and/or LLVM integration as well? 382 into the Linux kernel, please implement support into LLVM's BPF back 519 LLVM chapter 522 Q: Where do I find LLVM with BPF support? 524 A: The BPF back end for LLVM is upstream in LLVM since version 3.7.1. 526 All major distributions these days ship LLVM with BPF back end enabled, 527 so for the majority of use-cases it is not required to compile LLVM by 530 LLVM's static compiler lists the supported targets through [all …]
|
| /linux/drivers/gpu/drm/ci/ |
| H A D | dtbs-check.sh | 11 make LLVM=1 ARCH="${KERNEL_ARCH}" defconfig 13 if ! make -j"${FDO_CI_CONCURRENT:-4}" ARCH="${KERNEL_ARCH}" LLVM=1 dtbs_check \
|
| H A D | kunit.sh | 15 --make_options LLVM=1 \
|
| /linux/samples/bpf/ |
| H A D | README.rst | 22 version numbers required and how to update them. Note that LLVM's tool 64 Manually compiling LLVM with 'bpf' support 67 Since version 3.7.0, LLVM adds a proper LLVM backend target for the 79 Quick sniplet for manually compiling LLVM and clang
|
| /linux/tools/perf/util/ |
| H A D | addr2line.c | 96 LLVM, enumerator 116 style = LLVM; in cmd_addr2line_configure() 191 if (style == LLVM && line_len == 2 && line[0] == ',') { in read_addr2line_record()
|
| /linux/tools/testing/selftests/nolibc/ |
| H A D | run-tests.sh | 58 -l Build with LLVM/clang 174 …MAKE=(make -f Makefile.nolibc -j"${nproc}" XARCH="${arch}" CROSS_COMPILE="${cross_compile}" LLVM="…
|
| /linux/tools/testing/selftests/fchmodat2/ |
| H A D | Makefile | 9 ifeq ($(LLVM),)
|
| /linux/tools/testing/selftests/openat2/ |
| H A D | Makefile | 10 ifeq ($(LLVM),)
|