[llvm] [RISCV] Support fastcc passing scalable vectors indirectly with no free GPRs. (PR #107623)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 10:50:02 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 fd13cc03bdc9696bcab98ddb9b177ed89650ca30 e0eb4944425e6ef097fad940949e3b5d6ee743ae --extensions cpp -- llvm/lib/Target/RISCV/RISCVCallingConv.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVCallingConv.cpp b/llvm/lib/Target/RISCV/RISCVCallingConv.cpp
index 76fed27948..982673f67f 100644
--- a/llvm/lib/Target/RISCV/RISCVCallingConv.cpp
+++ b/llvm/lib/Target/RISCV/RISCVCallingConv.cpp
@@ -626,8 +626,7 @@ bool llvm::CC_RISCV_FastCC(unsigned ValNo, MVT ValVT, MVT LocVT,
}
// Pass fixed-length vectors on the stack.
- auto StackAlign =
- MaybeAlign(ValVT.getScalarSizeInBits() / 8).valueOrOne();
+ auto StackAlign = MaybeAlign(ValVT.getScalarSizeInBits() / 8).valueOrOne();
unsigned StackOffset =
State.AllocateStack(ValVT.getStoreSize(), StackAlign);
State.addLoc(
``````````
</details>
https://github.com/llvm/llvm-project/pull/107623
More information about the llvm-commits
mailing list