[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
Fri Jan 15 15:44:54 PST 2021


craig.topper updated this revision to Diff 317095.
craig.topper added a comment.
Herald added subscribers: frasercrmck, apazos, sameer.abuasal, pzheng, Jim, jocewei, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, MaskRay, jrtc27, niosHD, sabuasal, johnrusso, rbar, asb.

-Add SelectionDAG test.
-Don't query StructLayout in ComputeValueVTs if we don't need to calculate offsets.
-Use getFixedValue after getting the TypeSize for array elements in ComputeValueVTs instead of relying on uint64_t conversion operator. This will give a more immediate failure if someone ever tries to make arrays of scalable vectors supported.
-Update the GlobalISel version of ComputeValueVTs as well, but I'm not sure if we can test scalable vectors with GlobalISel yet


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94142/new/

https://reviews.llvm.org/D94142

Files:
  llvm/docs/LangRef.rst
  llvm/include/llvm/IR/DerivedTypes.h
  llvm/lib/CodeGen/Analysis.cpp
  llvm/lib/IR/DataLayout.cpp
  llvm/lib/IR/Type.cpp
  llvm/lib/IR/Verifier.cpp
  llvm/test/CodeGen/RISCV/scalable-vector-struct.ll
  llvm/test/Other/scalable-vector-struct-intrinsic.ll
  llvm/test/Other/scalable-vector-struct.ll
  llvm/test/Verifier/scalable-global-vars.ll
  llvm/test/Verifier/scalable-vector-struct-alloca.ll
  llvm/test/Verifier/scalable-vector-struct-load.ll
  llvm/test/Verifier/scalable-vector-struct-store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94142.317095.patch
Type: text/x-patch
Size: 12920 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210115/7bb84072/attachment.bin>


More information about the llvm-commits mailing list