[clang] [NFC] Add API documentation and annotations (PR #78635)
Joshua Batista via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 13 14:07:17 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)
----------------
bob80905 wrote:
Surprisingly, it looks like there aren't function prototypes for half2/3/4, and I imagine we would want this new attribute applied to such aliases. Just a note for the future.
https://github.com/llvm/llvm-project/pull/78635
More information about the cfe-commits
mailing list