[clang] 48e1250 - [clang][SVE] Undefine preprocessor macro defined in
Paul Walker via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 12 05:26:54 PDT 2022
Author: Maciej Gabka
Date: 2022-08-12T12:25:49Z
New Revision: 48e1250a91d244741c8677fed248ace1fcd7c41c
URL: https://github.com/llvm/llvm-project/commit/48e1250a91d244741c8677fed248ace1fcd7c41c
DIFF: https://github.com/llvm/llvm-project/commit/48e1250a91d244741c8677fed248ace1fcd7c41c.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
Added:
Modified:
clang/utils/TableGen/SveEmitter.cpp
Removed:
################################################################################
diff --git a/clang/utils/TableGen/SveEmitter.cpp b/clang/utils/TableGen/SveEmitter.cpp
index 4f8419b78eb7d..2ab7d7372a2a8 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 cfe-commits
mailing list