[RISCV] Add macro to imply compiler availability on RISC-V Vector intrinsics version
authoreopXD <yueh.ting.chen@gmail.com>
Tue, 29 Nov 2022 16:37:51 +0000 (08:37 -0800)
committereopXD <yueh.ting.chen@gmail.com>
Wed, 30 Nov 2022 16:35:53 +0000 (08:35 -0800)
commit482b8b493be099c2f70d4b2edd60041c403a247f
treea29deb85a1be0b90955aaace34d0249a416c814b
parente4e64eaade9463974ce92e4ab5f04d8e7a699de5
[RISCV] Add macro to imply compiler availability on RISC-V Vector intrinsics version

According to version_macro.adoc under rvv-intrinsic-doc, the compiler
should have a macro to imply such availability.

Link: https://github.com/riscv-non-isa/rvv-intrinsic-doc/blob/master/version_macro.adoc
Reviewed By: kito-cheng, asb

Differential Revision: https://reviews.llvm.org/D138930
clang/lib/Basic/Targets/RISCV.cpp
clang/test/Preprocessor/riscv-target-features.c