[clang] [Clang][HLSL] Add environment parameter to availability attribute (PR #89809)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Tue May 14 09:15:10 PDT 2024


================
@@ -18,14 +18,21 @@ namespace hlsl {
 
 #define _HLSL_BUILTIN_ALIAS(builtin)                                           \
   __attribute__((clang_builtin_alias(builtin)))
-#define _HLSL_AVAILABILITY(environment, version)                               \
-  __attribute__((availability(environment, introduced = version)))
+#define _HLSL_AVAILABILITY(platform, version)                                  \
+  __attribute__((availability(platform, introduced = version)))
+#define _HLSL_AVAILABILITY_STAGE(platform, version, stage)                     \
----------------
hekota wrote:

I believe all of the intrinsics implemented so far are available for all shader stages, so no update is needed.

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


More information about the cfe-commits mailing list