summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorYaxun (Sam) Liu <yaxun.liu@amd.com>2015-11-09 15:25:24 -0500
committerYaxun (Sam) Liu <yaxun.liu@amd.com>2015-11-09 15:25:24 -0500
commitb2690d32f2d7b3abded037d8e0ede53824ea18c3 (patch)
treea9fe7105f33cd4e4b7719776dbc2a9efeb761458 /docs
parent8234eb1671dfa394624b68359b34d6d51efd174d (diff)
[SPIRV] Fix translation of to_global/local/private. The corresponding SPIR-V builtin function __spirv_GenericCastToPtrExplicit needs to be postfixed with _ToGlobal/Local/Private to avoid confliction of names.
Diffstat (limited to 'docs')
-rw-r--r--docs/SPIRVRepresentationInLLVM.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/SPIRVRepresentationInLLVM.rst b/docs/SPIRVRepresentationInLLVM.rst
index 1320ce9..1394357 100644
--- a/docs/SPIRVRepresentationInLLVM.rst
+++ b/docs/SPIRVRepresentationInLLVM.rst
@@ -71,6 +71,15 @@ where
* {ConversionOpCodeName} = ConvertFToU|ConvertFToS|ConvertUToF|ConvertUToS|UConvert|SConvert|FConvert|SatConvertSToU|SatConvertUToS
+SPIR-V Builtin GenericCastToPtr Function Name
+----------------------------------------
+
+The unmangled names of SPIR-V builtin GenericCastToPtrExplicit function follow the convention:
+
+.. code-block:: c
+
+ __spirv_GenericCastToPtrExplicit_To{Global|Local|Private}
+
SPIR-V Extended Instructions Mapped to LLVM Function Calls
==========================================================