[llvm] [MacroFusion] Support multiple predicators (PR #72219)

Wang Pengcheng via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 20:26:45 PST 2023


================
@@ -29,10 +29,10 @@ class SUnit;
 /// Check if the instr pair, FirstMI and SecondMI, should be fused
 /// together. Given SecondMI, when FirstMI is unspecified, then check if
 /// SecondMI may be part of a fused pair at all.
-using ShouldSchedulePredTy = std::function<bool(const TargetInstrInfo &TII,
-                                                const TargetSubtargetInfo &TSI,
-                                                const MachineInstr *FirstMI,
-                                                const MachineInstr &SecondMI)>;
+using MacroFusionPredTy = bool (*)(const TargetInstrInfo &TII,
----------------
wangpc-pp wrote:

Sorry this can't be done as it causes some compilation failures due to incompatible type with single element ArrayRef.

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


More information about the llvm-commits mailing list