[PATCH] D94142: [IR] Allow scalable vectors in structs to support intrinsics returning multiple values.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 7 10:00:50 PST 2021
craig.topper added a comment.
In D94142#2484167 <https://reviews.llvm.org/D94142#2484167>, @kito-cheng wrote:
>> Don't allow function arguments or returns to use structs containing scalable vectors unless they are intrinsics.
>
> This is RISC-V specific question: Does it means we disallow passing register tuple type (NF>1) in future too?
I hope we can just break them down to individual values when clang generates IR. The generic code in SelectionDAG for returning a struct depends on being able to compute offsets so we'll definitely need to be careful with returns.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94142/new/
https://reviews.llvm.org/D94142
More information about the llvm-commits
mailing list