Commit 15141cd1 authored by Fraser Cormack's avatar Fraser Cormack
Browse files

[RISCV] Add RVV insertelt/extractelt scalable-vector patterns



Original patch by @rogfer01.

This patch adds support for insertelt and extractelt operations on
scalable vectors.

Special care must be taken on RV32 when dealing with i64 vectors as
there are no straightforward ways to insert a 64-bit element without a
register of that size. To that end, both are custom-lowered to different
sequences.

Authored-by: default avatarRoger Ferrer Ibanez <rofirrim@gmail.com>
Co-Authored-by: default avatarFraser Cormack <fraser@codeplay.com>

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D94615
parent 1ac36b34
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment