[clang] [NFC] Add API documentation and annotations (PR #78635)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 14 07:14:33 PST 2024
================
@@ -570,7 +716,13 @@ double4 sin(double4);
//===----------------------------------------------------------------------===//
// sqrt builtins
//===----------------------------------------------------------------------===//
+
+/// \fn T sqrt(T Val)
+/// \brief Returns the square root of the input value, \a Val.
+/// \param Val The input value.
+
#ifdef __HLSL_ENABLE_16_BIT
+_HLSL_AVAILABILITY(shadermodel, 6.2)
----------------
llvm-beanz wrote:
That's a good catch. I think we're missing all the vector overloads for `sqrt`. I also have another fix coming that specifically adjusts the `half` handling.
https://github.com/llvm/llvm-project/pull/78635
More information about the cfe-commits
mailing list