[llvm] [CodeGen][NPM] Port MachineBlockPlacement to NPM (PR #129828)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 9 22:35:43 PDT 2025
================
@@ -192,6 +192,15 @@ MACHINE_FUNCTION_PASS("verify<machine-trace-metrics>", MachineTraceMetricsVerifi
#define MACHINE_FUNCTION_PASS_WITH_PARAMS(NAME, CLASS, CREATE_PASS, PARSER, \
PARAMS)
#endif
+
+MACHINE_FUNCTION_PASS_WITH_PARAMS(
+ "block-placement", "MachineBlockPlacementPass",
+ [](bool AllowTailMerge) {
+ // Default is true.
+ return MachineBlockPlacementPass(AllowTailMerge);
+ },
+ parseMachineBlockPlacementPassOptions, "no-tail-merge;enable-tail-merge")
----------------
arsenm wrote:
Doesn't follow no-<positive> pattern, also not sure what this parameter list does
https://github.com/llvm/llvm-project/pull/129828
More information about the llvm-commits
mailing list