summaryrefslogtreecommitdiffstats
path: root/clang/docs/CommandGuide/clang.rst
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-05-08 23:30:37 -0700
committerHans Wennborg <hans@chromium.org>2020-01-17 09:45:41 +0100
commit7a8b8f09daa1d4f8b82275006678ce3b5daa03b2 (patch)
tree245e450ddd556ecf2a091d734342ce5663036117 /clang/docs/CommandGuide/clang.rst
parentfdb501e59f25e59b9dff7d51db468d590909cfef (diff)
downloadbcm5719-llvm-7a8b8f09daa1d4f8b82275006678ce3b5daa03b2.tar.gz
bcm5719-llvm-7a8b8f09daa1d4f8b82275006678ce3b5daa03b2.zip
PR17164: Change clang's default behavior from -flax-vector-conversions=all to -flax-vector-conversions=integer.
Summary: See proposal on cfe-dev: http://lists.llvm.org/pipermail/cfe-dev/2019-April/062030.html Reviewers: SjoerdMeijer, eli.friedman Subscribers: kristof.beyls, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D67678 (cherry picked from commit b72a8c65e4e34779b6bc9e466203f553f5294486)
Diffstat (limited to 'clang/docs/CommandGuide/clang.rst')
-rw-r--r--clang/docs/CommandGuide/clang.rst11
1 files changed, 10 insertions, 1 deletions
diff --git a/clang/docs/CommandGuide/clang.rst b/clang/docs/CommandGuide/clang.rst
index 7b0873600fc..6947450beb4 100644
--- a/clang/docs/CommandGuide/clang.rst
+++ b/clang/docs/CommandGuide/clang.rst
@@ -278,9 +278,18 @@ Language Selection and Mode Options
Make all string literals default to writable. This disables uniquing of
strings and other optimizations.
-.. option:: -flax-vector-conversions
+.. option:: -flax-vector-conversions, -flax-vector-conversions=<kind>, -fno-lax-vector-conversions
Allow loose type checking rules for implicit vector conversions.
+ Possible values of <kind>:
+
+ - ``none``: allow no implicit conversions between vectors
+ - ``integer``: allow implicit bitcasts between integer vectors of the same
+ overall bit-width
+ - ``all``: allow implicit bitcasts between any vectors of the same
+ overall bit-width
+
+ <kind> defaults to ``integer`` if unspecified.
.. option:: -fblocks
OpenPOWER on IntegriCloud