[PATCH] D132639: [AArch64] Alter arm_neon_sve_bridge.h to be target-based, not preprocessor based.

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 25 02:25:32 PDT 2022


dmgreen created this revision.
dmgreen added reviewers: sdesmalen, simon_tatham, stuij, efriedma, ilinpv.
Herald added subscribers: ctetreau, kristof.beyls, tschuett.
Herald added a project: All.
dmgreen requested review of this revision.

Similar to D131064 <https://reviews.llvm.org/D131064>, this alters the arm_neon_sve_bridge.h header to use target-based intrinsics that give an error if used in a function that does not have the sve features, but are not preprocessed out. This header is simpler than the arm_sve.h and other headers, not including any tablegen'd content. The main change is altering the builtin definitions from using BUILTIN to TARGET_BUILTIN.


https://reviews.llvm.org/D132639

Files:
  clang/include/clang/Basic/BuiltinsAArch64NeonSVEBridge.def
  clang/lib/Headers/arm_neon_sve_bridge.h
  clang/test/CodeGen/aarch64_neon_sve_bridge_intrinsics/target.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132639.455512.patch
Type: text/x-patch
Size: 7559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220825/5f4850cd/attachment.bin>


More information about the llvm-commits mailing list