[llvm] [TableGen] Add a backend to generate MacroFusion predicators (PR #72222)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 19 00:59:41 PST 2023


================
@@ -584,3 +584,116 @@ class MemoryQueue<ProcResourceKind PR> {
 
 class LoadQueue<ProcResourceKind LDQueue> : MemoryQueue<LDQueue>;
 class StoreQueue<ProcResourceKind STQueue> : MemoryQueue<STQueue>;
+
+// The target instruction that FusionPredicate will be evaluated on.
+class FusionTarget;
+def first : FusionTarget;
+def second : FusionTarget;
+def both : FusionTarget;
----------------
arsenm wrote:

These are really general names to introduce into the global namespace; first_fusion_target maybe?

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


More information about the llvm-commits mailing list