[PATCH] D40230: Add -mprefer-vector-width driver option and attribute during CodeGen.
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 19 14:53:33 PST 2017
craig.topper created this revision.
This adds a new command line option -mprefer-vector-width to specify a preferred vector width for the vectorizers. Valid values are 'none' and unsigned integers. The driver will check that it meets those constraints. Specific supported integers will be managed by the targets in the backend.
Clang will take the value and add it as a new function attribute during CodeGen.
This represents the alternate direction proposed by Sanjay in this RFC: http://lists.llvm.org/pipermail/llvm-dev/2017-November/118734.html
This supercedes https://reviews.llvm.org/D39576
https://reviews.llvm.org/D40230
Files:
include/clang/Driver/Options.td
include/clang/Frontend/CodeGenOptions.h
lib/CodeGen/CGCall.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/attr-mprefer-vector-width.c
test/Driver/mprefer-vector-width.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40230.123518.patch
Type: text/x-patch
Size: 5405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171119/f6d31ff9/attachment.bin>
More information about the cfe-commits
mailing list