[PATCH] D94142: [IR] Allow scalable vectors in structs to support intrinsics returning multiple values.
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 13 08:53:31 PST 2021
sdesmalen added inline comments.
================
Comment at: llvm/lib/IR/Type.cpp:398
+ if (auto *STy = dyn_cast<StructType>(Ty))
+ if (STy->containsScalableVectorType())
+ return true;
----------------
This line made me realise there's currently no test for the nested case (struct containing a struct with a scalable vector). I'm not sure if this could lead to any complications, for example in CopyTo/FromParts that tries to breaks down the aggregate when passing values to a different basic block.
Is this something you've tried?
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