[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 27 16:22:21 PDT 2024


================
@@ -6155,6 +6155,53 @@ class BTFTagAttributedType : public Type, public llvm::FoldingSetNode {
   }
 };
 
+class HLSLAttributedResourceType : public Type, public llvm::FoldingSetNode {
+public:
+  struct Attributes {
+    // Data gathered from HLSL resource attributes
+    uint8_t ResourceClass; // maps to llvm::dxil::ResourceClass
----------------
bogner wrote:

I think we can `#include "llvm/Support/DXILABI.h"` and use the enum itself here.

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


More information about the cfe-commits mailing list