[llvm] [RISCV] Align MCOperandPredicates with AsmParser (PR #146184)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 30 22:53:59 PDT 2025


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 HEAD~1 HEAD --extensions h,cpp -- llvm/include/llvm/MC/MCExpr.h llvm/include/llvm/MC/MCInst.h llvm/lib/MC/MCInst.cpp llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/MC/MCInst.cpp b/llvm/lib/MC/MCInst.cpp
index ad6715cf7..e2fb8eb82 100644
--- a/llvm/lib/MC/MCInst.cpp
+++ b/llvm/lib/MC/MCInst.cpp
@@ -78,7 +78,8 @@ bool MCOperand::isSimpleSymbolRef(MCExpr::Spec &Specifier) const {
   case MCExpr::Constant:
     break;
   case MCExpr::Target:
-    // It's not clear this is right, does MCTargetExpr need another virtual method?
+    // It's not clear this is right, does MCTargetExpr need another virtual
+    // method?
     break;
   case MCExpr::SymbolRef:
     Specifier = cast<MCSymbolRefExpr>(Expr)->getSpecifier();

``````````

</details>


https://github.com/llvm/llvm-project/pull/146184


More information about the llvm-commits mailing list