[clang] [HLSL] Implement RWBuffer::operator[] via __builtin_hlsl_resource_getpointer (PR #117017)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 22 01:09:14 PST 2024


================
@@ -12487,6 +12487,7 @@ def err_hlsl_pointers_unsupported : Error<
   "%select{pointers|references}0 are unsupported in HLSL">;
 def err_hlsl_missing_resource_class : Error<"HLSL resource needs to have [[hlsl::resource_class()]] attribute">;
 def err_hlsl_attribute_needs_intangible_type: Error<"attribute %0 can be used only on HLSL intangible type %1">;
+def err_hlsl_builtin_requires_resource: Error<"operand must be of __hlsl_resource_t type">;
----------------
bogner wrote:

Good to know. I really need to review that PR, sorry!

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


More information about the cfe-commits mailing list