[clang] [HLSL] Rewrite inline HLSL intrinsics into TableGen (PR #188362)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 31 22:41:15 PDT 2026
================
@@ -1948,6 +1929,20 @@ float3 normalize(float3);
_HLSL_BUILTIN_ALIAS(__builtin_hlsl_normalize)
float4 normalize(float4);
+//===----------------------------------------------------------------------===//
+// NonUniformResourceIndex builtins
+//===----------------------------------------------------------------------===//
+
+/// \fn uint NonUniformResourceIndex(uint I)
+/// \brief A compiler hint to indicate that a resource index varies across
+/// threads within a wave (i.e., it is non-uniform).
+/// \param I [in] Resource array index.
+///
+/// The return value is the \a I parameter.
+
----------------
bogner wrote:
The comment where this was moved from was like 15 lines long. Is it intentional to make this significantly less verbose?
Also I don't know if the extra blank line here will upset doxygen/clang tooling.
https://github.com/llvm/llvm-project/pull/188362
More information about the cfe-commits
mailing list