[PATCH] D108293: [AArch64][SME] Add predicate for NEON support in streaming mode
Cullen Rhodes via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 18 05:33:14 PDT 2021
c-rhodes created this revision.
c-rhodes added reviewers: david-arm, paulwalker-arm.
Herald added subscribers: hiraditya, kristof.beyls.
c-rhodes requested review of this revision.
Herald added a project: LLVM.
Split out from D107903 <https://reviews.llvm.org/D107903> to remove dependency for D108039 <https://reviews.llvm.org/D108039> and D108279 <https://reviews.llvm.org/D108279>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D108293
Files:
llvm/lib/Target/AArch64/AArch64InstrInfo.td
Index: llvm/lib/Target/AArch64/AArch64InstrInfo.td
===================================================================
--- llvm/lib/Target/AArch64/AArch64InstrInfo.td
+++ llvm/lib/Target/AArch64/AArch64InstrInfo.td
@@ -140,6 +140,12 @@
: Predicate<"Subtarget->hasSVE2() || Subtarget->hasStreamingSVE()">,
AssemblerPredicate<(any_of FeatureSVE2, FeatureStreamingSVE),
"streaming-sve or sve2">;
+// A subset of NEON instructions are legal in Streaming SVE execution mode,
+// they should be enabled if either has been specified.
+def HasNEONorStreamingSVE
+ : Predicate<"Subtarget->hasNEON() || Subtarget->hasStreamingSVE()">,
+ AssemblerPredicate<(any_of FeatureNEON, FeatureStreamingSVE),
+ "streaming-sve or neon">;
def HasRCPC : Predicate<"Subtarget->hasRCPC()">,
AssemblerPredicate<(all_of FeatureRCPC), "rcpc">;
def HasAltNZCV : Predicate<"Subtarget->hasAlternativeNZCV()">,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108293.367183.patch
Type: text/x-patch
Size: 1002 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210818/012fccf9/attachment.bin>
More information about the llvm-commits
mailing list