[llvm] [RISCV] Use TableGen-based macro fusion (PR #72224)

Mikhail Gudim via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 05:34:15 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,
----------------
mgudim wrote:

what was the problem with using `std::function` as before

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


More information about the llvm-commits mailing list