[llvm] [TableGen] Add a backend to generate MacroFusion predicators (PR #72222)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 14 19:56:10 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 0723d2496b107840fb812a9ae4420f327bb35ab7 5dfe864d8022ec7ba26eb58dad45302a13a6af50 -- llvm/utils/TableGen/MacroFusionPredicatorEmitter.cpp llvm/include/llvm/CodeGen/MacroFusion.h llvm/lib/CodeGen/MacroFusion.cpp llvm/lib/Target/AArch64/AArch64MacroFusion.cpp llvm/lib/Target/AMDGPU/AMDGPUMacroFusion.cpp llvm/lib/Target/AMDGPU/GCNVOPDUtils.cpp llvm/lib/Target/ARM/ARMMacroFusion.cpp llvm/lib/Target/PowerPC/PPCMacroFusion.cpp llvm/lib/Target/RISCV/RISCVMacroFusion.cpp llvm/lib/Target/X86/X86MacroFusion.cpp llvm/utils/TableGen/PredicateExpander.cpp llvm/utils/TableGen/PredicateExpander.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/utils/TableGen/MacroFusionPredicatorEmitter.cpp b/llvm/utils/TableGen/MacroFusionPredicatorEmitter.cpp
index 28a12a5c85..b3b6602be0 100644
--- a/llvm/utils/TableGen/MacroFusionPredicatorEmitter.cpp
+++ b/llvm/utils/TableGen/MacroFusionPredicatorEmitter.cpp
@@ -53,7 +53,8 @@ void MacroFusionPredicatorEmitter::emitMacroFusionDecl(
for (Record *MacroFusion : MacroFusions) {
OS << "bool is" << MacroFusion->getName() << "(const TargetInstrInfo &, "
- << "const TargetSubtargetInfo &, " << "const MachineInstr *, "
+ << "const TargetSubtargetInfo &, "
+ << "const MachineInstr *, "
<< "const MachineInstr &);\n";
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/72222
More information about the llvm-commits
mailing list