OSDN Git Service

Re-add documentation for -flax-vector-conversions= removed in
authorRichard Smith <richard@metafoo.co.uk>
Thu, 23 Jan 2020 20:28:03 +0000 (12:28 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Thu, 23 Jan 2020 20:28:03 +0000 (12:28 -0800)
edd4398f4cd33a305afbca76ac4e6590e9337f4d.

The documentation remains correct despite the revert of the patch.

clang/docs/CommandGuide/clang.rst

index 7b08736..6947450 100644 (file)
@@ -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