[all-commits] [llvm/llvm-project] 0d4c65: [RISCV] Refactor RVV Policy by structure

Piyou Chen via All-commits all-commits at lists.llvm.org
Tue Dec 20 01:20:15 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d4c6506100b339311283c10d841d7693287666a
      https://github.com/llvm/llvm-project/commit/0d4c6506100b339311283c10d841d7693287666a
  Author: Piyou Chen <piyou.chen at sifive.com>
  Date:   2022-12-20 (Tue, 20 Dec 2022)

  Changed paths:
    M clang/include/clang/Support/RISCVVIntrinsicUtils.h
    M clang/lib/Sema/SemaRISCVVectorLookup.cpp
    M clang/lib/Support/RISCVVIntrinsicUtils.cpp
    M clang/utils/TableGen/RISCVVEmitter.cpp

  Log Message:
  -----------
  [RISCV] Refactor RVV Policy by structure

RVV intrinsic function has several policy variants.

Include TU, TA, TAMU, TAMA, TUMU, TUMA, MU, MA, TUM, TAM

Currently, the clang side enumerates these policies, but it's hard to add a new policy.

This patch use structure to replace the origin policy enumeration, and enhance some policy transform logic.

This is a clean-up job that will not affect the RVV intrinsic functionality and make sure riscv_vector_builtin_cg.inc is the same as the original one.

Reviewed By: kito-cheng

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




More information about the All-commits mailing list