[PATCH] D71760: [POC][SVE] Allow code generation for fixed length vectorised loops [Patch 1/2].
Paul Walker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 20 06:09:52 PDT 2020
paulwalker-arm updated this revision to Diff 279217.
paulwalker-arm added a comment.
Rebase.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71760/new/
https://reviews.llvm.org/D71760
Files:
clang/lib/Driver/ToolChains/Clang.cpp
Index: clang/lib/Driver/ToolChains/Clang.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Clang.cpp
+++ clang/lib/Driver/ToolChains/Clang.cpp
@@ -1721,9 +1721,16 @@
StringRef Val = A->getValue();
const Driver &D = getToolChain().getDriver();
if (Val.equals("128") || Val.equals("256") || Val.equals("512") ||
- Val.equals("1024") || Val.equals("2048"))
+ Val.equals("1024") || Val.equals("2048")) {
CmdArgs.push_back(
Args.MakeArgString(llvm::Twine("-msve-vector-bits=") + Val));
+ CmdArgs.push_back("-mllvm");
+ CmdArgs.push_back(
+ Args.MakeArgString("-aarch64-sve-vector-bits-min=" + Val));
+ // CmdArgs.push_back("-mllvm");
+ // CmdArgs.push_back(
+ // Args.MakeArgString("-aarch64-sve-vector-bits-max=" + Val));
+ }
// Silently drop requests for vector-length agnostic code as it's implied.
else if (!Val.equals("scalable"))
// Handle the unsupported values passed to msve-vector-bits.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71760.279217.patch
Type: text/x-patch
Size: 1050 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200720/c1f0d2a3/attachment.bin>
More information about the llvm-commits
mailing list