[all-commits] [llvm/llvm-project] cfe533: [RISCV] Add lowering for vp.fptosi and vp.sitofp.

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Mar 28 11:09:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cfe533da05bc6084fd2d573b6a8f3269a007958b
      https://github.com/llvm/llvm-project/commit/cfe533da05bc6084fd2d573b6a8f3269a007958b
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-03-28 (Mon, 28 Mar 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.h
    M llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fptosi-vp.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-sitofp-vp-mask.ll
    A llvm/test/CodeGen/RISCV/rvv/fixed-vectors-sitofp-vp.ll
    A llvm/test/CodeGen/RISCV/rvv/vfptosi-vp.ll
    A llvm/test/CodeGen/RISCV/rvv/vsitofp-vp-mask.ll
    A llvm/test/CodeGen/RISCV/rvv/vsitofp-vp.ll

  Log Message:
  -----------
  [RISCV] Add lowering for vp.fptosi and vp.sitofp.

This as an alternative version of D120641. Starting from the code here
https://repo.hca.bsc.es/gitlab/rferrer/llvm-epi/-/raw/EPI/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
but with some modifications to how the interim types are calculated,
and adding support for f16.

Still need to add fptosi for mask vectors.

Lots of masked isel patterns added so we can pass the mask through
the type changes.

Reviewed By: frasercrmck, arcbbb

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




More information about the All-commits mailing list