summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2019-08-22 18:57:46 +0000
committerAaron Ballman <aaron@aaronballman.com>2019-08-22 18:57:46 +0000
commit8560ec31b96c4174504d6d6a3e82cd948c0234d4 (patch)
tree49b913a5403cea958cd9667cc46bbe6e7bcf175d /docs
parent51d6184d80dc7ea18f1487db00019ae5f406f479 (diff)
downloadclang-8560ec31b96c4174504d6d6a3e82cd948c0234d4.tar.gz
Improve the documentation for OpenCL vector types.
This fixes some minor grammatical issues I noticed when reading the docs, and changes the recommended feature testing approach to use __has_attribute instead of __has_extension. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/LanguageExtensions.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/LanguageExtensions.rst b/docs/LanguageExtensions.rst
index 3eadb9d098..b75177545c 100644
--- a/docs/LanguageExtensions.rst
+++ b/docs/LanguageExtensions.rst
@@ -389,8 +389,8 @@ Vectors and Extended Vectors
Supports the GCC, OpenCL, AltiVec and NEON vector extensions.
-OpenCL vector types are created using ``ext_vector_type`` attribute. It
-support for ``V.xyzw`` syntax and other tidbits as seen in OpenCL. An example
+OpenCL vector types are created using the ``ext_vector_type`` attribute. It
+supports the ``V.xyzw`` syntax and other tidbits as seen in OpenCL. An example
is:
.. code-block:: c++
@@ -405,7 +405,7 @@ is:
return c;
}
-Query for this feature with ``__has_extension(attribute_ext_vector_type)``.
+Query for this feature with ``__has_attribute(ext_vector_type)``.
Giving ``-maltivec`` option to clang enables support for AltiVec vector syntax
and functions. For example: