[clang] [HLSL] Fix intrinsics header file for wave intrinsics using u/int16_t types, updating them to 6.2 (PR #186218)
Joshua Batista via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 12 16:49:01 PDT 2026
================
@@ -30,11 +30,17 @@ namespace hlsl {
#define _HLSL_16BIT_AVAILABILITY_STAGE(platform, version, stage) \
__attribute__(( \
availability(platform, introduced = version, environment = stage)))
+#define _HLSL_16BIT_AVAILABILITY_DEFAULT(shadermodel) \
+ _HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
#else
#define _HLSL_16BIT_AVAILABILITY(environment, version)
#define _HLSL_16BIT_AVAILABILITY_STAGE(environment, version, stage)
+#define _HLSL_16BIT_AVAILABILITY_DEFAULT(shadermodel)
#endif
+#define _HLSL_AVAILABILITY_6_2_DEFAULT(shadermodel) \
+ _HLSL_AVAILABILITY(shadermodel, 6.2)
----------------
bob80905 wrote:
Yeah, I could see this name being misinterpreted as not referring to 6_2 as the default, I'll change it.
But, half isn't always within the ifdef, and that is the reason we had separate macros. So that's why I have to define a new one. Otherwise, we could ask the same question as to why we have 2 separate macros already.
https://github.com/llvm/llvm-project/pull/186218
More information about the cfe-commits
mailing list