[all-commits] [llvm/llvm-project] 10fc6e: [RISCV] Add support for the stepvector intrinsic

Fraser Cormack via All-commits all-commits at lists.llvm.org
Wed Mar 31 03:48:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 10fc6e4358115258685cdf9c269a7eec30f97451
      https://github.com/llvm/llvm-project/commit/10fc6e4358115258685cdf9c269a7eec30f97451
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2021-03-31 (Wed, 31 Mar 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.h
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-stepvector-rv32.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-stepvector-rv64.ll
    A llvm/test/CodeGen/RISCV/rvv/stepvector-rv32.ll
    A llvm/test/CodeGen/RISCV/rvv/stepvector-rv64.ll

  Log Message:
  -----------
  [RISCV] Add support for the stepvector intrinsic

This adds almost everything required for supporting the new stepvector
intrinsic on RVV. It is lowered to the existing VID_VL SDNode.

The only exception is a limitation that RV32 cannot yet lower the
intrinsic on i64 vectors. This is because the step operand is
(currently) required to be at least as large as the vector element type.
I will look into patching that out and loosening the requirement to only
an integer pointer type.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D99594




More information about the All-commits mailing list