[llvm] [RISCV] Handle RVV return type in calling convention correctly (PR #87736)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 4 22:52:56 PDT 2024
================
@@ -21077,7 +21079,82 @@ unsigned RISCVTargetLowering::getMinimumJumpTableEntries() const {
return Subtarget.getMinimumJumpTableEntries();
}
-void RVVArgDispatcher::constructArgInfos(ArrayRef<Type *> TypeList) {
+// Handle single arg such as return value.
+template <typename Arg>
+void RVVArgDispatcher::constructArgInfos(ArrayRef<Arg> ArgList) {
+ // This lambda determines whether an array of types are constructed by
+ // homogeneous vector types.
+ auto isHomogeneousScalableVectorType = [&](ArrayRef<Arg> ArgList) {
----------------
topperc wrote:
What is the `[&]`? Is skimmed the code, but couldn't find anything. Maybe I missed it.
https://github.com/llvm/llvm-project/pull/87736
More information about the llvm-commits
mailing list