[llvm] [ARMISelDAGToDAG] use MO_FrameIndex to represent FrameIndex rather than MO_Register (PR #69654)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 16:07:31 PDT 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 ab17ecd107670cd843a9074e4d0bc33810abcf5e 5c57cb869a57907391be89ba9afe38f96c32d72d -- llvm/lib/Target/ARM/ARMAsmPrinter.cpp llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp llvm/lib/Target/ARM/ARMFrameLowering.cpp llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
index 9c147cdd9173..baba295624a4 100644
--- a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -5882,7 +5882,8 @@ bool ARMDAGToDAGISel::SelectInlineAsmMemoryOperand(
   case InlineAsm::ConstraintCode::Uv:
   case InlineAsm::ConstraintCode::Uy: {
     SDValue Base, OffImm;
-    if (Op.getOpcode() == ISD::FrameIndex && SelectAddrModeImm12(Op, Base, OffImm)) {
+    if (Op.getOpcode() == ISD::FrameIndex &&
+        SelectAddrModeImm12(Op, Base, OffImm)) {
       OutOps.push_back(Base);
       OutOps.push_back(OffImm);
       return false;

``````````

</details>


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


More information about the llvm-commits mailing list