[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)
Damyan Pepper via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 1 11:37:23 PDT 2024
================
@@ -12303,7 +12303,10 @@ def err_hlsl_missing_semantic_annotation : Error<
def err_hlsl_init_priority_unsupported : Error<
"initializer priorities are not supported in HLSL">;
-def err_hlsl_unsupported_register_type : Error<"invalid resource class specifier '%0' used; expected 'b', 's', 't', or 'u'">;
+def err_hlsl_mismatching_register_resource_type_and_name: Error<"invalid register name prefix '%0' for register resource type '%1' (expected %select{'t'|'u'|'b'|'s'}2)">;
+def err_hlsl_mismatching_register_builtin_type_and_name: Error<"invalid register name prefix '%0' for '%1' (expected %2)">;
+def err_hlsl_unsupported_register_prefix : Error<"invalid resource class specifier '%0' used; expected 't', 'u', 'b', or 's'">;
+def err_hlsl_unsupported_register_resource_type : Error<"invalid resource '%0' used">;
----------------
damyanp wrote:
I only see `err_hlsl_unsupported_register_prefix` referenced in the code. `err_hlsl_unsupported_register_resource_type` is in some code that's commented out. The two mismatching ones don't appear in the code at all.
https://github.com/llvm/llvm-project/pull/97103
More information about the cfe-commits
mailing list