[llvm] Reapply "[MC][TableGen] Expand Opcode field of MCInstrDesc" (#180321) (PR #180954)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 11 06:51:09 PST 2026
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 origin/main HEAD --extensions cpp,h -- llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutorImpl.h llvm/include/llvm/CodeGen/MachineInstr.h llvm/include/llvm/MC/MCInstrDesc.h llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp llvm/lib/MCA/InstrBuilder.cpp llvm/lib/Target/AArch64/AArch64InstrInfo.h llvm/lib/Target/AMDGPU/MCA/AMDGPUCustomBehaviour.cpp llvm/lib/Target/AMDGPU/MCA/AMDGPUCustomBehaviour.h llvm/lib/Target/AMDGPU/R600InstrInfo.h llvm/lib/Target/AMDGPU/SIInstrInfo.cpp llvm/lib/Target/AMDGPU/SIInstrInfo.h llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp llvm/lib/Target/SystemZ/SystemZInstrInfo.h llvm/lib/Target/WebAssembly/TargetInfo/WebAssemblyTargetInfo.h llvm/utils/TableGen/AsmMatcherEmitter.cpp llvm/utils/TableGen/CodeGenMapTable.cpp llvm/utils/TableGen/InstrInfoEmitter.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp b/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp
index afa1345fd..cf586a489 100644
--- a/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp
+++ b/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp
@@ -78,7 +78,11 @@ bool PPCDispatchGroupSBHazardRecognizer::isBCTRAfterSet(SUnit *SU) {
}
// FIXME: Remove this when we don't need this:
-namespace llvm { namespace PPC { extern int64_t getNonRecordFormOpcode(uint32_t); } }
+namespace llvm {
+namespace PPC {
+extern int64_t getNonRecordFormOpcode(uint32_t);
+}
+} // namespace llvm
// FIXME: A lot of code in PPCDispatchGroupSBHazardRecognizer is P7 specific.
diff --git a/llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp b/llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp
index f33d4bf89..6ea47d6e8 100644
--- a/llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp
+++ b/llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp
@@ -47,7 +47,7 @@ static cl::opt<bool> DisableVSXFMAMutate(
#define DEBUG_TYPE "ppc-vsx-fma-mutate"
namespace llvm { namespace PPC {
- int64_t getAltVSXFMAOpcode(uint32_t Opcode);
+int64_t getAltVSXFMAOpcode(uint32_t Opcode);
} }
namespace {
``````````
</details>
https://github.com/llvm/llvm-project/pull/180954
More information about the llvm-commits
mailing list