[clang] [llvm] [HLSL] AST support for WaveSize attribute. (PR #101240)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 30 17:25:44 PDT 2024
================
@@ -12361,6 +12361,21 @@ def warn_hlsl_availability_unavailable :
def err_hlsl_export_not_on_function : Error<
"export declaration can only be used on functions">;
+def err_hlsl_attribute_in_wrong_shader_model: Error<
+ "attribute %0 requires shader model %1 or greater">;
+
+def err_hlsl_wavesize_size: Error<
+ "wavesize arguments must be between 4 and 128 and a power of 2">;
+def err_hlsl_wavesize_min_geq_max: Error<
+ "minimum wavesize value %0 must be less than maximum wavesize value %1">;
+def warn_hlsl_wavesize_min_eq_max: Warning<
+ "wave size range minimum and maximum are equal">,
----------------
llvm-beanz wrote:
Can we make this more generic and match other attribute formats?
```suggestion
def warn_attr_min_eq_max: Warning<
"%0 attribute minimum and maximum arguments are equal">,
```
https://github.com/llvm/llvm-project/pull/101240
More information about the cfe-commits
mailing list