[llvm] [MC][TableGen] Expand Opcode field of MCInstrDesc (PR #179652)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 4 05:02:59 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/MC/MCInstrDesc.h llvm/lib/Target/AArch64/AArch64InstrInfo.h llvm/lib/Target/AMDGPU/R600InstrInfo.h llvm/lib/Target/AMDGPU/SIInstrInfo.cpp llvm/lib/Target/AMDGPU/SIInstrInfo.h 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 402f852a1..9258c5ff3 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 int getNonRecordFormOpcode(uint32_t); } }
+namespace llvm {
+namespace PPC {
+extern int 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 1eb253935..ad90c99f0 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 {
- int getAltVSXFMAOpcode(uint32_t Opcode);
+int getAltVSXFMAOpcode(uint32_t Opcode);
} }
namespace {
``````````
</details>
https://github.com/llvm/llvm-project/pull/179652
More information about the llvm-commits
mailing list