[llvm-branch-commits] [clang] b4a285b - [clang][SVE] Undefine preprocessor macro defined in
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Aug 17 01:57:06 PDT 2022
Author: Maciej Gabka
Date: 2022-08-17T10:56:17+02:00
New Revision: b4a285bcb59e8c4d80f170e26739356a95eb3091
URL: https://github.com/llvm/llvm-project/commit/b4a285bcb59e8c4d80f170e26739356a95eb3091
DIFF: https://github.com/llvm/llvm-project/commit/b4a285bcb59e8c4d80f170e26739356a95eb3091.diff
LOG: [clang][SVE] Undefine preprocessor macro defined in
arm_sve.h defines and uses __ai macro which needs to be undefined (as it is
already in arm_neon.h).
Reviewed By: paulwalker-arm
Differential Revision: https://reviews.llvm.org/D131580
(cherry picked from commit 48e1250a91d244741c8677fed248ace1fcd7c41c)
Added:
Modified:
clang/utils/TableGen/SveEmitter.cpp
Removed:
################################################################################
diff --git a/clang/utils/TableGen/SveEmitter.cpp b/clang/utils/TableGen/SveEmitter.cpp
index b2f6ede56522a..e1e1c078ccbf5 100644
--- a/clang/utils/TableGen/SveEmitter.cpp
+++ b/clang/utils/TableGen/SveEmitter.cpp
@@ -1282,6 +1282,8 @@ void SVEEmitter::createHeader(raw_ostream &OS) {
OS << "#ifdef __cplusplus\n";
OS << "} // extern \"C\"\n";
OS << "#endif\n\n";
+ OS << "#undef __ai\n\n";
+ OS << "#undef __aio\n\n";
OS << "#endif /*__ARM_FEATURE_SVE */\n\n";
OS << "#endif /* __ARM_SVE_H */\n";
}
More information about the llvm-branch-commits
mailing list