[all-commits] [llvm/llvm-project] 4ea8e2: [SveEmitter] Add builtins to insert/extract subvec...
sdesmalen-arm via All-commits
all-commits at lists.llvm.org
Thu Jun 18 03:07:12 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 4ea8e27a642c6f97ca69cd39bbe44f7366870f6c
https://github.com/llvm/llvm-project/commit/4ea8e27a642c6f97ca69cd39bbe44f7366870f6c
Author: Sander de Smalen <sander.desmalen at arm.com>
Date: 2020-06-18 (Thu, 18 Jun 2020)
Changed paths:
M clang/include/clang/Basic/TargetBuiltins.h
M clang/include/clang/Basic/arm_sve.td
M clang/lib/CodeGen/CGBuiltin.cpp
M clang/lib/Sema/SemaChecking.cpp
A clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get2.c
A clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get3.c
A clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get4.c
A clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set2.c
A clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set3.c
A clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set4.c
A clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_get2.c
A clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_get3.c
A clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_get4.c
A clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_set2.c
A clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_set3.c
A clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_set4.c
Log Message:
-----------
[SveEmitter] Add builtins to insert/extract subvectors from tuples (svget/svset)
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`.
Reviewers: c-rhodes, efriedma
Reviewed By: c-rhodes
Tags: #clang
Differential Revision: https://reviews.llvm.org/D81464
More information about the All-commits
mailing list