[llvm] [PowerPC] Add error for incorrect use of memory operands (PR #114277)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 30 10:31:14 PDT 2024
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 362273d1435c0cc104418f88b0140d0388e9ee22 e7ee0206c194092e2bdf86ad3be75d3a2cfc4d0d --extensions cpp,h -- llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h llvm/lib/Target/PowerPC/PPCInstrInfo.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp b/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
index 5ed41844bf..069e7c3e7d 100644
--- a/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
+++ b/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
@@ -8,8 +8,8 @@
#include "MCTargetDesc/PPCMCExpr.h"
#include "MCTargetDesc/PPCMCTargetDesc.h"
-#include "PPCTargetStreamer.h"
#include "PPCInstrInfo.h"
+#include "PPCTargetStreamer.h"
#include "TargetInfo/PowerPCTargetInfo.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Twine.h"
@@ -1263,7 +1263,7 @@ bool PPCAsmParser::matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
MCStreamer &Out, uint64_t &ErrorInfo,
bool MatchingInlineAsm) {
MCInst Inst;
- const PPCInstrInfo *TII = static_cast<const PPCInstrInfo*>(&MII);
+ const PPCInstrInfo *TII = static_cast<const PPCInstrInfo *>(&MII);
switch (MatchInstructionImpl(Operands, Inst, ErrorInfo, MatchingInlineAsm)) {
case Match_Success:
if (usesMemOp() != TII->isMemOp(Inst.getOpcode()))
``````````
</details>
https://github.com/llvm/llvm-project/pull/114277
More information about the llvm-commits
mailing list