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 cpp,h,c --
clang/test/CodeGen/builtin-stackaddress.c
clang/test/CodeGenCXX/builtin-stackaddress.cpp
clang/test/Sema/builtin-stackaddress-target-support.c
clang/lib/CodeGen/CGBuiltin.cpp clang/test/Sema/builtin-stackaddress.c
llvm/include/llvm/CodeGen/ISDOpcodes.h
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
llvm/lib/CodeGen/TargetLoweringBase.cpp
llvm/lib/Target/Sparc/SparcISelLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 9a3f81039..064d4485b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -7325,9 +7325,8 @@ void SelectionDAGBuilder::visitIntrinsicCall(const
CallInst &I,
}
case Intrinsic::stackaddress:
case Intrinsic::stacksave: {
- unsigned SDOpcode = Intrinsic == Intrinsic::stackaddress
- ? ISD::STACKADDRESS
- : ISD::STACKSAVE;
+ unsigned SDOpcode = Intrinsic == Intrinsic::stackaddress ?
ISD::STACKADDRESS
+ : ISD::STACKSAVE;
SDValue Op = getRoot();
EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
Res = DAG.getNode(SDOpcode, sdl, DAG.getVTList(VT, MVT::Other), Op);
diff --git a/llvm/lib/Target/Sparc/SparcISelLowering.cpp
b/llvm/lib/Target/Sparc/SparcISelLowering.cpp
index f0fe55cf1..ef5fc0154 100644
--- a/llvm/lib/Target/Sparc/SparcISelLowering.cpp
+++ b/llvm/lib/Target/Sparc/SparcISelLowering.cpp
@@ -1861,7 +1861,7 @@ SparcTargetLowering::SparcTargetLowering(const
TargetMachine &TM,
setOperationAction(ISD::STACKSAVE , MVT::Other, Expand);
setOperationAction(ISD::STACKRESTORE , MVT::Other, Expand);
setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32 , Custom);
- setOperationAction(ISD::STACKADDRESS , MVT::Other, Custom);
+ setOperationAction(ISD::STACKADDRESS, MVT::Other, Custom);
setStackPointerRegisterToSaveRestore(SP::O6);
@@ -2734,13 +2734,14 @@ static SDValue LowerSTACKADDRESS(SDValue Op,
SelectionDAG &DAG,
// Unbias the stack pointer register.
OffsetToStackStart += Subtarget->getStackPointerBias();
// Move past the register save area: 8 in registers + 8 local registers.
- OffsetToStackStart += 16 * (Subtarget->is64Bit() ? 8 : 4);
+ OffsetToStackStart += 16 * (Subtarget->is64Bit() ? 8 : 4);
// Move past the struct return address slot (4 bytes) on SPARC 32-bit.
if (!Subtarget->is64Bit()) {
OffsetToStackStart += 4;
}
- SDValue StackAddr = DAG.getNode(ISD::ADD, DL, VT, SP,
DAG.getConstant(OffsetToStackStart, DL, VT));
+ SDValue StackAddr = DAG.getNode(ISD::ADD, DL, VT, SP,
+ DAG.getConstant(OffsetToStackStart, DL, VT));
return DAG.getMergeValues({StackAddr, Chain}, DL);
}
@@ -3141,7 +3142,8 @@ LowerOperation(SDValue Op, SelectionDAG &DAG) const {
case ISD::VAARG: return LowerVAARG(Op, DAG);
case ISD::DYNAMIC_STACKALLOC: return LowerDYNAMIC_STACKALLOC(Op, DAG,
Subtarget);
- case ISD::STACKADDRESS: return LowerSTACKADDRESS(Op, DAG, Subtarget);
+ case ISD::STACKADDRESS:
+ return LowerSTACKADDRESS(Op, DAG, Subtarget);
case ISD::LOAD: return LowerLOAD(Op, DAG);
case ISD::STORE: return LowerSTORE(Op, DAG);
``````````
</details>
https://github.com/llvm/llvm-project/pull/148281
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits