================
@@ -232,6 +232,41 @@ class HLSLAnnotationAttr : public InheritableAttr {
   }
 };
 
+class HLSLSemanticAttr : public HLSLAnnotationAttr {
+  unsigned SemanticIndex : 30;
+  LLVM_PREFERRED_TYPE(bool)
+  unsigned SemanticIndexable : 1;
----------------
Keenuts wrote:

I wanted specifically to avoid having the indexing logic somewhere else in the 
code: make the TD file defines the rules allowed for a given semantic. But we 
could also do this as you suggested. I'll reserve this change to the 
refactoring of the conditions (like what value is allowed for what semantic, 
etc)

https://github.com/llvm/llvm-project/pull/152537
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to