[clang] [HLSL][docs] Document hlsl.h in the HLSL docs (PR #84081)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 11 08:59:21 PDT 2024


================
@@ -114,6 +114,54 @@ not re-targetable, we want to share the Clang CodeGen implementation for HLSL
 with other GPU graphics targets like SPIR-V and possibly other GPU and even CPU
 targets.
 
+hlsl.h
+------
+
+HLSL has a library of standalone functions. This is similar to OpenCL and CUDA,
+and is analogous to C's standard library. The implementation approach for the
+HLSL library functionality draws from patterns in use by OpenCL and other Clang
+resource headers. All of the clang resource headers are part of the
+``ClangHeaders`` component found in the source tree under
+`clang/lib/Headers <https://github.com/llvm/llvm-project/tree/main/clang/lib/Headers>`_.
+
+.. note::
----------------
llvm-beanz wrote:

Comment for reviewers: GitHub's preview doesn't properly render the `note` block. An example of this in HTML can be found here: https://clang.llvm.org/docs/LanguageExtensions.html#has-builtin

https://github.com/llvm/llvm-project/pull/84081


More information about the cfe-commits mailing list