[llvm] [X86][GlobalISel] Added support for llvm.get.rounding (PR #147716)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 06:10:01 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/CodeGen/GlobalISel/MachineIRBuilder.h llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp llvm/lib/Target/X86/GISel/X86LegalizerInfo.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp b/llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp
index 826883e0a..9cd74f411 100644
--- a/llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp
+++ b/llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp
@@ -819,8 +819,10 @@ bool X86LegalizerInfo::legalizeGETROUNDING(MachineInstr &MI,
   int MemSize = 2;
   Align Alignment = Align(2);
   MachinePointerInfo PtrInfo;
-  Register StackPtr = Helper.createStackTemporary(TypeSize::getFixed(MemSize),
-                                                  Alignment, PtrInfo).getReg(0);
+  Register StackPtr =
+      Helper
+          .createStackTemporary(TypeSize::getFixed(MemSize), Alignment, PtrInfo)
+          .getReg(0);
 
   auto StoreMMO = MF.getMachineMemOperand(PtrInfo, MachineMemOperand::MOStore,
                                           MemSize, Alignment);

``````````

</details>


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


More information about the llvm-commits mailing list