[all-commits] [llvm/llvm-project] f24606: [NFC][LLVM][CodeGen] Refactor MIR Printer (#137361)
Rahul Joshi via All-commits
all-commits at lists.llvm.org
Thu May 1 10:01:17 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f24606376d449fa14bc72953951c52005f590434
https://github.com/llvm/llvm-project/commit/f24606376d449fa14bc72953951c52005f590434
Author: Rahul Joshi <rjoshi at nvidia.com>
Date: 2025-05-01 (Thu, 01 May 2025)
Changed paths:
M llvm/include/llvm/CodeGen/MachineBasicBlock.h
M llvm/include/llvm/Support/BranchProbability.h
M llvm/lib/CodeGen/MIRPrinter.cpp
M llvm/lib/CodeGen/MIRPrintingPass.cpp
M llvm/lib/CodeGen/MachineBasicBlock.cpp
Log Message:
-----------
[NFC][LLVM][CodeGen] Refactor MIR Printer (#137361)
- Move `MIPrinter` class to anonymous namespace, and remove it as a
friend of `MachineBasicBlock`.
- Move `canPredictBranchProbabilities` to `MachineBasicBlock` and change
it to use the new `BranchProbability::normalizeProbabilities` function
that accepts a range, and also to use `llvm::equal()` to check equality
of the two vectors.
- Use `ListSeparator` to print comma separate lists instead of manual
code to do that.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list