[PATCH] D74334: [ARM,MVE] Add the vrev16q, vrev32q, vrev64q family.

Simon Tatham via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 10 08:56:06 PST 2020


simon_tatham created this revision.
simon_tatham added reviewers: dmgreen, miyuki, MarkMurrayARM, ostannard.
Herald added subscribers: cfe-commits, kristof.beyls.
Herald added a project: clang.

These intrinsics just reorder the lanes of a vector, so the natural IR
representation is as a shufflevector operation. Existing LLVM codegen
already recognizes those particular shufflevectors and generates the
MVE VREV instruction.

This commit adds the unpredicated forms only.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74334

Files:
  clang/include/clang/Basic/arm_mve.td
  clang/include/clang/Basic/arm_mve_defs.td
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/test/CodeGen/arm-mve-intrinsics/vrev.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74334.243583.patch
Type: text/x-patch
Size: 10074 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200210/47dd1f33/attachment-0001.bin>


More information about the cfe-commits mailing list