aboutsummaryrefslogtreecommitdiff
path: root/clang/docs/CommandGuide
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-05-08 23:30:37 -0700
committerRichard Smith <richard@metafoo.co.uk>2020-01-15 13:14:57 -0800
commitb72a8c65e4e34779b6bc9e466203f553f5294486 (patch)
tree6a115123860662c0f83f1bb97b6d542d6733b625 /clang/docs/CommandGuide
parent388eaa1270c2762d61b756759b6db8cf15bd3a83 (diff)
downloadllvm-b72a8c65e4e34779b6bc9e466203f553f5294486.zip
llvm-b72a8c65e4e34779b6bc9e466203f553f5294486.tar.gz
llvm-b72a8c65e4e34779b6bc9e466203f553f5294486.tar.bz2
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
Diffstat (limited to 'clang/docs/CommandGuide')
-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 7b08736..6947450 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