[clang] 7df2597 - [Doc][OpenCL] Misc wording improvements for SPIR-V
Anastasia Stulova via cfe-commits
cfe-commits at lists.llvm.org
Fri May 27 03:13:55 PDT 2022
Author: Anastasia Stulova
Date: 2022-05-27T11:13:06+01:00
New Revision: 7df25978ef7882a3d793eecee854ec5d961c02d2
URL: https://github.com/llvm/llvm-project/commit/7df25978ef7882a3d793eecee854ec5d961c02d2
DIFF: https://github.com/llvm/llvm-project/commit/7df25978ef7882a3d793eecee854ec5d961c02d2.diff
LOG: [Doc][OpenCL] Misc wording improvements for SPIR-V
Added:
Modified:
clang/docs/OpenCLSupport.rst
llvm/docs/SPIRVUsage.rst
Removed:
################################################################################
diff --git a/clang/docs/OpenCLSupport.rst b/clang/docs/OpenCLSupport.rst
index bcd55f6cc841..3fa0c774f5bc 100644
--- a/clang/docs/OpenCLSupport.rst
+++ b/clang/docs/OpenCLSupport.rst
@@ -25,7 +25,7 @@ Clang also supports :ref:`the C++ for OpenCL kernel language <cxx_for_opencl_imp
There are also other :ref:`new and experimental features <opencl_experimenal>`
available.
-
+Details about usage of clang for OpenCL can be found in :doc:`UsersManual`.
Missing features or with limited support
========================================
diff --git a/llvm/docs/SPIRVUsage.rst b/llvm/docs/SPIRVUsage.rst
index 7529b5d3b586..0f75e001e661 100644
--- a/llvm/docs/SPIRVUsage.rst
+++ b/llvm/docs/SPIRVUsage.rst
@@ -36,17 +36,17 @@ to specify the target triple:
.. table:: SPIR-V Subarchitectures
- ============ ==============================================================
- Architecture Description
- ============ ==============================================================
- *<empty>* SPIR-V version deduced by tools based on the compiled input.
- ``v1.0`` SPIR-V version 1.0.
- ``v1.1`` SPIR-V version 1.1.
- ``v1.2`` SPIR-V version 1.2.
- ``v1.3`` SPIR-V version 1.3.
- ``v1.4`` SPIR-V version 1.4.
- ``v1.5`` SPIR-V version 1.5.
- ============ ==============================================================
+ =============== ==============================================================
+ Subarchitecture Description
+ =============== ==============================================================
+ *<empty>* SPIR-V version deduced by tools based on the compiled input.
+ ``v1.0`` SPIR-V version 1.0.
+ ``v1.1`` SPIR-V version 1.1.
+ ``v1.2`` SPIR-V version 1.2.
+ ``v1.3`` SPIR-V version 1.3.
+ ``v1.4`` SPIR-V version 1.4.
+ ``v1.5`` SPIR-V version 1.5.
+ =============== ==============================================================
.. table:: SPIR-V Vendors
@@ -71,3 +71,7 @@ to specify the target triple:
===================== ==============================================================
*<empty>*/``unknown`` Defaults to the OpenCL environment.
===================== ==============================================================
+
+Example:
+
+``-target spirv64v1.0`` can be used to compile for SPIR-V version 1.0 with 64-bit pointer width.
More information about the cfe-commits
mailing list