[PATCH] D81464: [SveEmitter] Add builtins to insert/extract subvectors from tuples (svget/svset)

Sander de Smalen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 9 06:33:11 PDT 2020


sdesmalen created this revision.
Herald added subscribers: cfe-commits, tschuett.
Herald added a project: clang.
sdesmalen added a parent revision: D81459: [SveEmitter] Add SVE tuple types and builtins for svundef..

For example:

  svint32_t svget4(svint32x4_t tuple, uint64_t imm_index)

returns the subvector at `index`, which must be in range `0..3`.

  svint32x3_t svset3(svint32x3_t tuple, uint64_t index, svint32_t vec)

returns a tuple vector with `vec` inserted into `tuple` at `index`, which must be in range `0..2`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81464

Files:
  clang/include/clang/Basic/TargetBuiltins.h
  clang/include/clang/Basic/arm_sve.td
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/lib/Sema/SemaChecking.cpp
  clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get2.c
  clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get3.c
  clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get4.c
  clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set2.c
  clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set3.c
  clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set4.c
  clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_get2.c
  clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_get3.c
  clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_get4.c
  clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_set2.c
  clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_set3.c
  clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_set4.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81464.269514.patch
Type: text/x-patch
Size: 66619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200609/2b0fd864/attachment-0001.bin>


More information about the cfe-commits mailing list