diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/LanguageExtensions.html | 22 | ||||
-rw-r--r-- | docs/UsersManual.html | 6 |
2 files changed, 21 insertions, 7 deletions
diff --git a/docs/LanguageExtensions.html b/docs/LanguageExtensions.html index e2a44ea..d32842b 100644 --- a/docs/LanguageExtensions.html +++ b/docs/LanguageExtensions.html @@ -205,12 +205,28 @@ is used in the file argument.</p> <h2 id="vectors">Vectors and Extended Vectors</h2> <!-- ======================================================================= --> -<p>Supports the GCC vector extensions, plus some stuff like V[1]. ext_vector -with V.xyzw syntax and other tidbits. See also <a -href="#__builtin_shufflevector">__builtin_shufflevector</a>.</p> +<p>Supports the GCC vector extensions, plus some stuff like V[1].</p> + +<p>Also supports <tt>ext_vector</tt>, which additionally support for V.xyzw +syntax and other tidbits as seen in OpenCL. An example is:</p> + +<blockquote> +<pre> +typedef float float4 <b>__attribute__((ext_vector_type(4)))</b>; +typedef float float2 <b>__attribute__((ext_vector_type(2)))</b>; + +float4 foo(float2 a, float2 b) { + float4 c; + c.xz = a; + c.yw = b; + return c; +} +</blockquote> <p>Query for this feature with __has_feature(attribute_ext_vector_type).</p> +<p>See also <a href="#__builtin_shufflevector">__builtin_shufflevector</a>.</p> + <!-- ======================================================================= --> <h2 id="checking_language_features">Checks for Standard Language Features</h2> <!-- ======================================================================= --> diff --git a/docs/UsersManual.html b/docs/UsersManual.html index 13e0209..41715bb 100644 --- a/docs/UsersManual.html +++ b/docs/UsersManual.html @@ -789,14 +789,12 @@ definition.</li> <h2 id="cxx">C++ Language Features</h2> <!-- ======================================================================= --> -<p>At this point, Clang C++ is not generally useful. However, Clang C++ support +<p>At this point, Clang C++ is not production-quality and is not recommended for use beyond experimentation. However, Clang C++ support is under active development and is progressing rapidly. Please see the <a href="http://clang.llvm.org/cxx_status.html">C++ Status</a> page for details or ask on the mailing list about how you can help.</p> -<p>Note that the clang driver will refuse to even try to use clang to compile -C++ code unless you pass the <tt>-ccc-clang-cxx</tt> option to the driver. If -you really want to play with Clang's C++ support, please pass that flag. </p> +<p>Note that released Clang compilers will refuse to even try to use clang to compile C++ code unless you pass the <tt>-ccc-clang-cxx</tt> option to the driver. To turn on Clang's C++ support, please pass that flag. Clang compilers built from the Subversion trunk enable C++ support by default, and do not require the <tt>-ccc-clang-cxx</tt> flag.</p> <!-- ======================================================================= --> <h2 id="objcxx">Objective C++ Language Features</h2> |