llvm-project/clang/utils
David Green b879f99f0e [AArch64][ARM] Alter most of arm_neon.h to be target-based, not preprocessor based.
Similar to D131064, this alters most of the intrinsics in arm_neon.h to
be target based, not preprocessor based. The intrinsics that are changed
are the ones with obvious target features (fp16, fp16fml, cryptos, i8mm
and bf16). The ones that are not yet altered are the ones without target
features like rdma (8.1) and complex (8.3). Those will be switched in a
followup patch that allows targeting architecture versions.

The existing ArchGuard in arm_neon.td is split into ArchGuard that still
adds ifdef defines (for example for intrinsics that require __aarch64__),
and TargetGuards for intrinsics dependant on target features. From there
the TargetGuards are used in two ways:
 - For intrinsics emitted as functions, __attribute__((target(TargetGuard)))
   is added to the definition of the function. Along with the existing
   always_inline intrinsic, this will give a compile time error if the
   function is used in a context where the target feature is not available.
 - For intrinsics emitted as macros, the __builtins are emitted into
   arm_neon.inc using TARGET_BUILTIN as opposed to BUILTIN, which includes
   the target feature and gives an error if the builtin is found in a
   function without the required features, similar to arm_sve.h.

The second method requires that the intrinsics be separable from the
existing _v intrinsics used in other types. For example
__builtin_neon_splat_lane_bf16 is used as opposed to
__builtin_neon_splat_lane_v. There are some adjustments to the CGBuiltin
to account for intrinsics that can be treated similarly, except for
their target features.

Differential Revision: https://reviews.llvm.org/D132034
2022-10-11 09:09:16 +01:00
..
ABITest
CIndex
ClangVisualizers [clang] adds unary type transformations as compiler built-ins 2022-08-22 03:03:32 +00:00
TableGen [AArch64][ARM] Alter most of arm_neon.h to be target-based, not preprocessor based. 2022-10-11 09:09:16 +01:00
TestUtils Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
VtableTest
analyzer [analyzer] Add more information to the Exploded Graph 2022-09-03 00:21:05 +02:00
check_cfc [NFC][clang]Inclusive language: remove remaining uses of sanity 2021-11-24 14:20:13 -05:00
hmaptool Fix one stray `{LLVM -> CLANG}_TOOLS_INSTALL_DIR` 2022-07-23 16:26:32 +00:00
perf-training [CMake] Add clang-bolt target 2022-09-23 10:10:31 +02:00
valgrind
CaptureCmd
ClangDataFormat.py [clang][utils] Remove StringRef lldb summary provider 2022-02-03 15:16:31 -08:00
CmpDriver
FindSpecRefs
FuzzTest
bash-autocomplete.sh
builtin-defines.c
clangdiag.py
convert_arm_neon.py [NFC][clang] Inclusive language: replace master with main in convert_arm_neon.py 2021-11-16 10:11:06 -06:00
creduce-clang-crash.py [Utils] Add an option to specify number of cores to use in creduce-clang-crash.py 2021-02-22 12:43:09 -08:00
find-unused-diagnostics.sh
make-ast-dump-check.sh [clang] Use portable "#!/usr/bin/env bash" shebang for tools and utils. 2021-09-23 21:16:43 +05:30
modfuzz.py
module-deps-to-rsp.py Reapply "[clang][deps] Split translation units into individual -cc1 or other commands" 2022-08-31 09:45:11 -07:00
token-delta.py