Home
last modified time | relevance | path

Searched full:clang (Results 1 – 25 of 42) sorted by relevance

12

/optee_os/mk/
H A Dclang.mk2 # CROSS_COMPILE64 and indicates the target that should be passed to clang. Path
6 clang-target := $(patsubst %-,%,$(notdir $(lastword $(CROSS_COMPILE_$(sm)))))
7 ifeq ($(clang-target),aarch64-linux)
8 clang-target := aarch64-linux-gnu
10 ifneq ($(clang-target),)
11 clang-target-opt := --target=$(clang-target)
15 CC$(sm) := $(ccache-cmd)$(OPTEE_CLANG_COMPILER_PATH)clang $(clang-target-opt)
17 # Due to the absence of clang-cpp in AOSP's prebuilt version of clang,
18 # use the equivalent command of 'clang -E'
19 CPP$(sm) := $(ccache-cmd)$(OPTEE_CLANG_COMPILER_PATH)clang $(clang-target-opt) -E
[all …]
/optee_os/scripts/
H A Dci-host-cleanup.sh18 clang-tools-16 clang-tools-17 clang-tools-18
19 clang-tidy-16 clang-tidy-17 clang-tidy-18
/optee_os/
H A D.clang-format3 # clang-format configuration file. Intended for clang-format >= 11.
10 # https://clang.llvm.org/docs/ClangFormat.html
11 # https://clang.llvm.org/docs/ClangFormatStyleOptions.html
H A D.gitignore10 !.clang-format
/optee_os/lib/libmbedtls/mbedtls/library/
H A Daesce.c21 * The intrinsic declaration are guarded by predefined ACLE macros in clang:
53 # error "Minimum version of Clang for MBEDTLS_AESCE_C on 32-bit Arm or Thumb is 11.0."
55 # error "Minimum version of Clang for MBEDTLS_AESCE_C on aarch64 is 4.0."
85 # pragma clang attribute push (__attribute__((target("aes"))), apply_to=function)
89 # pragma clang attribute push (__attribute__((target("aes"))), apply_to=function)
406 /* On clang for A32/T32, work around some missing intrinsics and types which are listed in
468 /* Missing intrinsics common to both GCC 5, and Clang on 32-bit */
489 * poly64x1_t are different, that is different with MSVC and Clang. */
492 /* MSVC reports `error C2440: 'type cast'` with cast. Clang does not report
494 * cast for clang also. */
[all …]
H A Dplatform_util.c19 /* Clang requires this to get support for explicit_bzero */
117 /* For clang and recent gcc, pretend that we have some assembly that reads the in mbedtls_platform_zeroize()
121 #pragma clang diagnostic push in mbedtls_platform_zeroize()
122 #pragma clang diagnostic ignored "-Wvla" in mbedtls_platform_zeroize()
129 #pragma clang diagnostic pop in mbedtls_platform_zeroize()
H A Dsha512.c17 * The intrinsic declaration are guarded by predefined ACLE macros in clang:
57 * can't always detect __ARM_FEATURE_SHA512 (notably clang 7-12).
62 * Clang < 7 won't work at all (lacks the sha512 instructions)
63 * Clang 7-12 don't have intrinsics (but we work around that with inline
65 * Clang == 13.0.0 same as clang 12 (only seen on macOS)
66 * Clang >= 13.0.1 has __ARM_FEATURE_SHA512 and intrinsics
69 /* Test Clang first, as it defines __GNUC__ */
76 # pragma clang attribute push (__attribute__((target("sha3"))), apply_to=function)
81 # error "A more recent Clang is required for MBEDTLS_SHA512_USE_A64_CRYPTO_*"
83 # pragma clang attribute push (__attribute__((target("sha3"))), apply_to=function)
[all …]
H A Dcommon.h215 * For other compilers (e.g. recent gcc and clang) it makes no difference if n is a compile-time in mbedtls_xor()
296 * For other compilers (e.g. recent gcc and clang) it makes no difference if n is a compile-time in mbedtls_xor_no_simd()
342 * as found in watchos), "p" is required to avoid warnings from clang.
344 * Note that clang does not recognise '+p' or '=p', and armclang
400 /* clang provides __builtin_assume */
H A Dsha256.c26 * The intrinsic declaration are guarded by predefined ACLE macros in clang:
86 # pragma clang attribute push (__attribute__((target("sha2"))), apply_to=function)
90 # error "A more recent Clang is required for MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_*"
92 # pragma clang attribute push (__attribute__((target("crypto"))), apply_to=function)
106 # error "Only GCC and Clang supported for MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_*"
443 #pragma clang attribute pop
/optee_os/lib/libutils/compiler-rt/lib/builtins/
H A Dint_endianness.h20 // Clang and GCC provide built-in endianness definitions.
29 #else // Compilers other than Clang or GCC.
106 #endif // Clang or GCC.
H A Dint_types.h72 // compiler-rt with clang, but if they happen to be doing a standalone build for
155 // still makes it 80 bits. Clang will match whatever compiler it is trying to
235 // Clang prior to 11 did not support __float128 _Complex.
/optee_os/core/lib/libtomcrypt/src/headers/
H A Dtomcrypt_cfg.h252 /* No LTC_FAST if: explicitly disabled OR non-gcc/non-clang compiler OR old gcc OR using -ansi -std…
279 * clang also supports the bswap builtin, and although clang pretends
280 * to be gcc (macro-wise, anyway), clang pretends to be a version
282 * clang has a __has_builtin mechanism that can be used to check
284 * http://clang.llvm.org/docs/LanguageExtensions.html#feature_check */
/optee_os/.github/workflows/
H A Dci.yml74 _make PLATFORM=hikey-hikey960 COMPILER=clang
76 _make PLATFORM=hikey-hikey960 CFG_ARM64_core=y COMPILER=clang
245 _make PLATFORM=stm32mp1-135F_DK COMPILER=clang
264 _make PLATFORM=vexpress-qemu_armv8a COMPILER=clang
290 _make COMPILER=clang
364 export PATH=/usr/local/bin:$PATH # clang
515 - name: Clang
517 export COMPILER=clang
519 - name: Clang ULIBS_SHARED=y
521 export COMPILER=clang
[all...]
/optee_os/lib/libutils/ext/include/
H A Dconfine_array_index.h103 #pragma clang diagnostic push in confine_array_index()
105 #pragma clang diagnostic ignored "-Winline-asm" in confine_array_index()
109 #pragma clang diagnostic pop in confine_array_index()
H A Darm64_bti.S29 * clang and GCC) treat this as a 32 bit value so no swizzling
H A Dspeculation_barrier.h68 ensure that clang/llvm correctly detects NULL as a constant if it \
184 ensure that clang/llvm correctly detects NULL as a constant if it \
255 ensure that clang/llvm correctly detects NULL as a constant if it \
334 ensure that clang/llvm correctly detects NULL as a constant if it \
396 ensure that clang/llvm correctly detects NULL as a constant if it \
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dbuild_info.h74 /* GCC, clang, armclang and IAR */
78 /* Alternative defined by clang */
88 /* Defined if the compiler really is gcc and not clang, etc */
/optee_os/core/pta/veraison_attestation/
H A Dveraison_attestation.c29 /* clang-format off */
43 /* clang-format on */
H A Dsign.c38 /* clang-format off */
57 /* clang-format on */
/optee_os/ta/arch/arm/
H A Dta_entry_a32.S13 * We need an assembly wrapper because Clang does not accept asm(".cantunwind")
/optee_os/.devcontainer/
H A DDockerfile.vscode10 clang \
/optee_os/lib/libmbedtls/mbedtls/
H A DREADME.md50 * A C99 toolchain (compiler, linker, archiver). We actively test with GCC 5.4, Clang 3.8, Arm Compi…
141 …able within the CMake buildsystem. Most of them are available for gcc and clang, though some are c…
146 …is includes LeakSanitizer, with recent version of gcc and clang.) (With recent version of clang, t…
148 …nitizer to check for uninitialised memory reads. Experimental, needs recent clang on Linux/x86\_64.
/optee_os/core/
H A Dcore.mk60 ifeq ($(COMPILER),clang)
61 $(error error: CFG_CORE_SANITIZE_KADDRESS not supported with Clang)
/optee_os/core/lib/libtomcrypt/src/misc/crypt/
H A Dcrypt.c404 " Clang compiler " __clang_version__ ".\n"
407 #elif defined(__GNUC__) /* clang and icc also define __GNUC__ */
/optee_os/core/lib/libtomcrypt/src/prngs/
H A Dsprng.c99 /* NOLINTNEXTLINE(readability-non-const-parameter) - silence clang-tidy warning */

12