[llvm] [X86] movsd/movss/movd/movq - add support for constant comments (PR #78601)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 07:44:28 PST 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 6d0b718e8c5465966169ec9071d20cdce838ca91 994486081ed6816d466d64081686c2ec051b335f -- llvm/lib/Target/X86/MCTargetDesc/X86InstComments.cpp llvm/lib/Target/X86/X86MCInstLower.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/X86/X86MCInstLower.cpp b/llvm/lib/Target/X86/X86MCInstLower.cpp
index cc615a3fac..ee73c0c7c1 100644
--- a/llvm/lib/Target/X86/X86MCInstLower.cpp
+++ b/llvm/lib/Target/X86/X86MCInstLower.cpp
@@ -1874,7 +1874,7 @@ static void addConstantComments(const MachineInstr *MI,
           CS << "]";
           OutStreamer.AddComment(CS.str());
           break; // early-out
-        } 
+        }
         if (auto *CF = dyn_cast<ConstantFP>(C)) {
           CS << "[";
           printConstant(CF->getValue(), CS);

``````````

</details>


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


More information about the llvm-commits mailing list