fpetrogalli updated this revision to Diff 275283.
fpetrogalli added a comment.
Update the patch to limit its scope to generate the feature macros for
`-march=armv8.6a+sve`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83079/new/
https://reviews.l
sdesmalen accepted this revision.
sdesmalen added a comment.
This revision is now accepted and ready to land.
LGTM
Comment at: clang/test/Preprocessor/aarch64-target-features.c:415
// CHECK-BFLOAT: __ARM_FEATURE_BF16_VECTOR_ARITHMETIC 1
-
nit: unrelated change
fpetrogalli updated this revision to Diff 276106.
fpetrogalli added a comment.
Removed the unrelated change of the empty line.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83079/new/
https://reviews.llvm.org/D83079
Files:
clang/lib/Driver/ToolC
SjoerdMeijer added inline comments.
Comment at: clang/lib/Driver/ToolChains/Arch/AArch64.cpp:118
+
+ if (!llvm::AArch64::getArchFeatures(ArchKind, Features))
+return false;
Would it be more consistent to move this
Comment at: clang/lib
fpetrogalli updated this revision to Diff 276204.
fpetrogalli added a comment.
Addressed code review, moving the code and adding more testing, including the
`v8.5` one.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83079/new/
https://reviews.llvm.
sdesmalen added inline comments.
Comment at: clang/lib/Driver/ToolChains/Arch/AArch64.cpp:369
+ if (llvm::is_contained(Features, "+v8.6a")) {
+if (!llvm::is_contained(Features, "-i8mm") &&
+!llvm::is_contained(Features, "+noi8mm"))
Is this correct an
fpetrogalli marked 2 inline comments as done.
fpetrogalli added inline comments.
Comment at: clang/lib/Driver/ToolChains/Arch/AArch64.cpp:369
+ if (llvm::is_contained(Features, "+v8.6a")) {
+if (!llvm::is_contained(Features, "-i8mm") &&
+!llvm::is_contained(Features,
sdesmalen added inline comments.
Comment at: clang/lib/Driver/ToolChains/Arch/AArch64.cpp:369
+ if (llvm::is_contained(Features, "+v8.6a")) {
+if (!llvm::is_contained(Features, "-i8mm") &&
+!llvm::is_contained(Features, "+noi8mm"))
fpetrogalli wrote:
fpetrogalli updated this revision to Diff 276542.
fpetrogalli marked an inline comment as done.
fpetrogalli added a comment.
@sdesmalen, I have followed your suggestion to use insert instead of push_back!
Code is much nicer now, thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST
sdesmalen added inline comments.
Comment at: clang/lib/Driver/ToolChains/Arch/AArch64.cpp:370
+ if (V8_6Pos != std::end(Features)) {
+V8_6Pos = Features.insert(std::next(V8_6Pos), "+i8mm");
+V8_6Pos = Features.insert(V8_6Pos, "+bf16");
Both `+i8mm` and `
sdesmalen added inline comments.
Comment at: clang/lib/Driver/ToolChains/Arch/AArch64.cpp:370
+ if (V8_6Pos != std::end(Features)) {
+V8_6Pos = Features.insert(std::next(V8_6Pos), "+i8mm");
+V8_6Pos = Features.insert(V8_6Pos, "+bf16");
sdesmalen wrote:
>
fpetrogalli updated this revision to Diff 277445.
fpetrogalli added a comment.
Update the `insert` invocation to use initializer list instead of calling it
twice.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83079/new/
https://reviews.llvm.org/D8
sdesmalen accepted this revision.
sdesmalen added a comment.
LGTM again!
Comment at: clang/test/Preprocessor/aarch64-target-features.c:163
+
+// RUN: %clang -target aarch64-none-linux-gnu
-march=armv8.6-a+sve+noi8mm+nobf16+nof32mm -x c -E -dM %s -o - | FileCheck
--check-prefi
fpetrogalli updated this revision to Diff 277879.
fpetrogalli added a comment.
Removed extra tests that are not needed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83079/new/
https://reviews.llvm.org/D83079
Files:
clang/lib/Driver/ToolChains/A
This revision was automatically updated to reflect the committed changes.
Closed by commit rG438e95e95bfc: [clang][aarch64] Generate preprocessor macros
for -march=armv8.6a+sve. (authored by fpetrogalli).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/
15 matches
Mail list logo