[all-commits] [llvm/llvm-project] 8998fa: [clang] Change AMX macros to match names from GCC
Joe Loser via All-commits
all-commits at lists.llvm.org
Fri Feb 3 06:00:58 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8998fa6c14f1e19957858aa0e4b592d62ae56041
https://github.com/llvm/llvm-project/commit/8998fa6c14f1e19957858aa0e4b592d62ae56041
Author: Joe Loser <joeloser at fastmail.com>
Date: 2023-02-03 (Fri, 03 Feb 2023)
Changed paths:
M clang/lib/Basic/Targets/X86.cpp
M clang/lib/Headers/immintrin.h
M clang/test/Preprocessor/predefined-arch-macros.c
M clang/test/Preprocessor/x86_amx_target_features.c
M clang/test/Preprocessor/x86_target_features.c
Log Message:
-----------
[clang] Change AMX macros to match names from GCC
The current behavior for AMX macros is:
```
gcc -march=native -dM -E - < /dev/null | grep TILE
clang -march=native -dM -E - < /dev/null | grep TILE
```
which is not ideal. Change `__AMXTILE__` and friends to `__AMX_TILE__` (i.e.
have an underscore in them). This makes GCC and Clang agree on the naming of
these AMX macros to simplify downstream user code.
Fix this for `__AMXTILE__`, `__AMX_INT8__`, `__AMX_BF16__`, and `__AMX_FP16__`.
Differential Revision: https://reviews.llvm.org/D143094
More information about the All-commits
mailing list