================
@@ -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
+ uint8_t IsROV : 1;
+ Attributes(uint8_t RC, bool rov) : ResourceClass(RC), IsROV(rov) {}
+ Attributes() : Attributes(0, 0) {}
----------------
bogner wrote:
Do we actually need the default constructor? I can't imagine we ever build an
empty attributed resource type
https://github.com/llvm/llvm-project/pull/106181
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits