[llvm] [TableGen] Enhance testability of TableGen-based macro fusion (PR #73075)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 21 19:47:18 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 2c875719c841ff13b9b250e6ea97fc3e0aca2070 0eba0600e708ecf8b38579843aa8a210ecde01fc -- llvm/utils/TableGen/MacroFusionPredicatorEmitter.cpp llvm/include/llvm/CodeGen/MacroFusion.h llvm/include/llvm/CodeGen/TargetSubtargetInfo.h llvm/include/llvm/MC/MCSchedule.h llvm/include/llvm/MC/MCSubtargetInfo.h llvm/lib/CodeGen/MacroFusion.cpp llvm/lib/CodeGen/TargetSubtargetInfo.cpp llvm/lib/MC/MCSchedule.cpp llvm/lib/MC/MCSubtargetInfo.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/CodeGenSchedule.cpp llvm/utils/TableGen/CodeGenSchedule.h llvm/utils/TableGen/PredicateExpander.cpp llvm/utils/TableGen/PredicateExpander.h llvm/utils/TableGen/SubtargetEmitter.cpp
``````````
</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 835cd1c271..ea5c5890be 100644
--- a/llvm/utils/TableGen/MacroFusionPredicatorEmitter.cpp
+++ b/llvm/utils/TableGen/MacroFusionPredicatorEmitter.cpp
@@ -83,7 +83,8 @@ void MacroFusionPredicatorEmitter::emitMacroFusionDecl(
for (Record *Fusion : Fusions) {
OS << "bool is" << Fusion->getName() << "(const TargetInstrInfo &, "
- << "const TargetSubtargetInfo &, " << "const MachineInstr *, "
+ << "const TargetSubtargetInfo &, "
+ << "const MachineInstr *, "
<< "const MachineInstr &);\n";
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/73075
More information about the llvm-commits
mailing list