[llvm] [NFC][PowerPC] Add getScalarIntVT to return MVT based on arch (PR #115203)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 6 12:05:31 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 c949500d519085a4e5b93928b14ca766a353ad73 7be42369652588f7311043c4e1eddcd9525f9d6f --extensions h,cpp -- llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp llvm/lib/Target/PowerPC/PPCISelLowering.cpp llvm/lib/Target/PowerPC/PPCSubtarget.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 8a4bfbf33b..2ca2872b75 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -5242,10 +5242,10 @@ static SDValue EmitTailCallStoreFPAndRetAddr(SelectionDAG &DAG, SDValue Chain,
/// CalculateTailCallArgDest - Remember Argument for later processing. Calculate
/// the position of the argument.
-static void
-CalculateTailCallArgDest(SelectionDAG &DAG, MachineFunction &MF, bool IsPPC64,
- SDValue Arg, int SPDiff, unsigned ArgOffset,
- SmallVectorImpl<TailCallArgumentInfo> &TailCallArguments) {
+static void CalculateTailCallArgDest(
+ SelectionDAG &DAG, MachineFunction &MF, bool IsPPC64, SDValue Arg,
+ int SPDiff, unsigned ArgOffset,
+ SmallVectorImpl<TailCallArgumentInfo> &TailCallArguments) {
int Offset = ArgOffset + SPDiff;
uint32_t OpSize = (Arg.getValueSizeInBits() + 7) / 8;
int FI = MF.getFrameInfo().CreateFixedObject(OpSize, Offset, true);
@@ -5705,13 +5705,11 @@ static void prepareDescriptorIndirectCall(SelectionDAG &DAG, SDValue &Callee,
prepareIndirectCall(DAG, LoadFuncPtr, Glue, Chain, dl);
}
-static void
-buildCallOperands(SmallVectorImpl<SDValue> &Ops,
- PPCTargetLowering::CallFlags CFlags, const SDLoc &dl,
- SelectionDAG &DAG,
- SmallVector<std::pair<unsigned, SDValue>, 8> &RegsToPass,
- SDValue Glue, SDValue Chain, SDValue &Callee, int SPDiff,
- const PPCSubtarget &Subtarget) {
+static void buildCallOperands(
+ SmallVectorImpl<SDValue> &Ops, PPCTargetLowering::CallFlags CFlags,
+ const SDLoc &dl, SelectionDAG &DAG,
+ SmallVector<std::pair<unsigned, SDValue>, 8> &RegsToPass, SDValue Glue,
+ SDValue Chain, SDValue &Callee, int SPDiff, const PPCSubtarget &Subtarget) {
// MVT for a general purpose register.
const bool IsPPC64 = Subtarget.isPPC64();
const MVT RegVT = Subtarget.getScalarIntVT();
``````````
</details>
https://github.com/llvm/llvm-project/pull/115203
More information about the llvm-commits
mailing list