[llvm] [Xtensa] Implement lowering Mul/Div/Shift operations. (PR #99981)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 10:27:29 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 b2060965fd57ff71b52729985abfe4ea1929a4fd 58cf1359c20084d7bcf26c573be1e338dda8f41f --extensions h,cpp -- llvm/lib/Target/Xtensa/XtensaMachineFunctionInfo.h llvm/lib/Target/Xtensa/XtensaISelLowering.cpp llvm/lib/Target/Xtensa/XtensaISelLowering.h llvm/lib/Target/Xtensa/XtensaTargetMachine.cpp llvm/lib/Target/Xtensa/XtensaTargetMachine.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/Xtensa/XtensaISelLowering.cpp b/llvm/lib/Target/Xtensa/XtensaISelLowering.cpp
index 2253d18c7f..229bbc25cb 100644
--- a/llvm/lib/Target/Xtensa/XtensaISelLowering.cpp
+++ b/llvm/lib/Target/Xtensa/XtensaISelLowering.cpp
@@ -694,7 +694,7 @@ SDValue XtensaTargetLowering::LowerConstantPool(SDValue Op,
                                                 SelectionDAG &DAG) const {
   EVT PtrVT = Op.getValueType();
   ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
-  auto C = const_cast<Constant*>(CP->getConstVal());
+  auto C = const_cast<Constant *>(CP->getConstVal());
   auto T = CP->getType();
   SDValue Result;
 

``````````

</details>


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


More information about the llvm-commits mailing list