[llvm] [AMDGPU] Make maximum hard clause size a subtarget feature (PR #81287)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 9 23:37:01 PST 2024


================
@@ -227,6 +227,22 @@ def FeatureLdsBranchVmemWARHazard : SubtargetFeature<"lds-branch-vmem-war-hazard
   "Switching between LDS and VMEM-tex not waiting VM_VSRC=0"
 >;
 
+class FeatureMaxHardClauseLength<int size> : SubtargetFeature<
+  "max-hard-clause-length-"#size,
+  "MaxHardClauseLength",
+  !cast<string>(size),
+  "Maximum number of instructions in an explicit S_CLAUSE is "#size
+>;
+
+def FeatureMaxHardClauseLength32 : FeatureMaxHardClauseLength<32>;
+def FeatureMaxHardClauseLength63 : FeatureMaxHardClauseLength<63>;
+def FeatureNoHardClauses : SubtargetFeature<
----------------
jayfoad wrote:

What's `FeatureNoHardClauses` for? It seems unused by the rest of the patch.

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


More information about the llvm-commits mailing list