[RISCV] Merge Masked and unMasked RVV manual codegen
authorPiyou Chen <piyou.chen@sifive.com>
Thu, 22 Dec 2022 04:27:44 +0000 (20:27 -0800)
committerPiyou Chen <piyou.chen@sifive.com>
Thu, 22 Dec 2022 04:28:12 +0000 (20:28 -0800)
commit5370255ff18ac101a73685b77615148142ee7552
treeff58874200388e3fc5b038010714e9f50f2dda27
parent8c0aa53b07caa604d58a0d83dc571d8fcb004972
[RISCV] Merge Masked and unMasked RVV manual codegen

RVV intrinsic function will generate riscv_vector_builtin_cg.inc for CGBuiltin.cpp to produce the corresponding RVV intrinsic LLVM IR.

In this stage, riscv_vector.td will describe the bunch of manual codegen C++ code to tell CGBuiltin how to handle these instructions.

In this patch, we merge the masked RVV manual codegen and unmasked RVV manual codegen to reduce the number of manual codegen, and make more policy addition easier in the future.

This is a clean-up job that will not affect the RVV intrinsic functionality.

Reviewed By: kito-cheng

Differential Revision: https://reviews.llvm.org/D140361
clang/include/clang/Basic/riscv_vector.td
clang/lib/CodeGen/CGBuiltin.cpp
clang/utils/TableGen/RISCVVEmitter.cpp