Skip to content

Commit 1129f40

Browse files
Add printPipeline
Signed-off-by: Mikhail R. Gadelha <[email protected]>
1 parent 1439764 commit 1129f40

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

llvm/include/llvm/CodeGen/BranchFoldingPass.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class BranchFolderPass : public PassInfoMixin<BranchFolderPass> {
2424
return MachineFunctionProperties().set(
2525
MachineFunctionProperties::Property::NoPHIs);
2626
}
27+
28+
void printPipeline(raw_ostream &OS,
29+
function_ref<StringRef(StringRef)> MapClassName2PassName);
2730
};
2831

2932
} // namespace llvm

llvm/lib/CodeGen/BranchFolding.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ PreservedAnalyses BranchFolderPass::run(MachineFunction &MF,
147147
return getMachineFunctionPassPreservedAnalyses();
148148
}
149149

150+
void BranchFolderPass::printPipeline(
151+
raw_ostream &OS, function_ref<StringRef(StringRef)> MapClassName2PassName) {
152+
OS << MapClassName2PassName(name());
153+
if (EnableTailMerge)
154+
OS << "<enable-tail-merge>";
155+
}
156+
150157
bool BranchFolderLegacy::runOnMachineFunction(MachineFunction &MF) {
151158
if (skipFunction(MF.getFunction()))
152159
return false;

0 commit comments

Comments
 (0)