[all-commits] [llvm/llvm-project] cfe3b0: [RISCV] Reorder masked builtin operands. Use clang...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun May 2 11:08:40 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cfe3b0005f6e6e2b5384851a153ee831bad56d44
      https://github.com/llvm/llvm-project/commit/cfe3b0005f6e6e2b5384851a153ee831bad56d44
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-05-02 (Sun, 02 May 2021)

  Changed paths:
    M clang/include/clang/Basic/riscv_vector.td
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vaadd.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vadd.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vamoadd.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vamoand.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vamomax.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vamomin.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vamoor.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vamoswap.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vamoxor.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vand.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vasub.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vcompress.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vdiv.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfabs.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfadd.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfclass.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfcvt.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfdiv.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfirst.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfmacc.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfmadd.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfmax.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfmerge.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfmin.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfmsac.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfmsub.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfmul.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfncvt.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfneg.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfnmacc.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfnmadd.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfnmsac.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfnmsub.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfrdiv.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfrec7.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfredmax.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfredmin.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfredsum.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfrsqrt7.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfrsub.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfsgnj.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfslide1down.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfslide1up.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfsqrt.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfsub.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfwadd.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfwcvt.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfwmacc.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfwmsac.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfwmul.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfwnmacc.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfwnmsac.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfwredsum.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfwsub.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vid.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/viota.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vle.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vloxei.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vlse.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vluxei.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmacc.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmadd.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmax.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmerge.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmfeq.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmfge.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmfgt.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmfle.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmflt.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmfne.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmin.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmsbf.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmseq.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmsge.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmsgt.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmsif.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmsle.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmslt.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmsne.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmsof.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vmul.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vnclip.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vncvt.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vneg.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vnmsac.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vnmsub.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vnot.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vnsra.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vnsrl.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vor.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vpopc.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vredand.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vredmax.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vredmin.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vredor.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vredsum.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vredxor.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vrem.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vrgather.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vrsub.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vsadd.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vse.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vsext.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vslide1down.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vslide1up.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vslidedown.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vslideup.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vsll.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vsmul.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vsoxei.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vsra.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vsrl.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vsse.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vssra.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vssrl.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vssub.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vsub.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vsuxei.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vwadd.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vwcvt.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vwmacc.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vwmul.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vwredsum.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vwsub.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vxor.c
    M clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vzext.c
    M clang/utils/TableGen/RISCVVEmitter.cpp

  Log Message:
  -----------
  [RISCV] Reorder masked builtin operands. Use clang_builtin_alias for all overloaded vector builtins.

This patch makes the builtin operand order match the C operand order
for all intrinsics. With this we can use clang_builtin_alias for
all overloaded intrinsics.

This should further reduce the test time for vector intrinsics.

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




More information about the All-commits mailing list