[PATCH] D131580: [clang][SVE] Undefine preprocessor macro defined in

mgabka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 10 08:43:00 PDT 2022


mgabka created this revision.
mgabka added a reviewer: paulwalker-arm.
Herald added subscribers: ctetreau, psnobl, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: All.
mgabka requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

arm_sve.h defines and uses __ai macro which needs to be undefined (as it is
already in arm_neon.h).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131580

Files:
  clang/utils/TableGen/SveEmitter.cpp


Index: clang/utils/TableGen/SveEmitter.cpp
===================================================================
--- clang/utils/TableGen/SveEmitter.cpp
+++ clang/utils/TableGen/SveEmitter.cpp
@@ -1282,6 +1282,7 @@
   OS << "#ifdef __cplusplus\n";
   OS << "} // extern \"C\"\n";
   OS << "#endif\n\n";
+  OS << "#undef __ai\n\n";
   OS << "#endif /*__ARM_FEATURE_SVE */\n\n";
   OS << "#endif /* __ARM_SVE_H */\n";
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131580.451494.patch
Type: text/x-patch
Size: 417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220810/4f41ae01/attachment-0001.bin>


More information about the cfe-commits mailing list