[AArch64][SVE] Add SVE index intrinsic
authorKerry McLaughlin <kerry.mclaughlin@arm.com>
Mon, 17 Feb 2020 10:11:42 +0000 (10:11 +0000)
committerKerry McLaughlin <kerry.mclaughlin@arm.com>
Mon, 17 Feb 2020 10:30:11 +0000 (10:30 +0000)
commit633db60f3ed071e6ae580a57c7c536ee6b20c0c6
tree72bc84940b788ce8f7eddb2e7f1f1402fd18842f
parente5043cd3c262e981c1e7db72cd6f822d85a3d870
[AArch64][SVE] Add SVE index intrinsic

Summary:
Implements the @llvm.aarch64.sve.index intrinsic, which
takes a scalar base and step value.

This patch also adds the printSImm function to AArch64InstPrinter
to ensure that immediates of type i8 & i16 are printed correctly.

Reviewers: sdesmalen, andwar, efriedma, dancgr, cameron.mcinally, rengolin

Reviewed By: cameron.mcinally

Subscribers: tatyana-krasnukha, tschuett, kristof.beyls, hiraditya, rkruppe, arphaman, psnobl, cfe-commits, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D74550
llvm/include/llvm/IR/IntrinsicsAArch64.td
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/lib/Target/AArch64/AArch64InstrFormats.td
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.h
llvm/lib/Target/AArch64/SVEInstrFormats.td
llvm/test/CodeGen/AArch64/sve-intrinsics-index.ll [new file with mode: 0644]