[RISCV] Make EmitRISCVCpuSupports accept multiple features (#104917)
commit126b56a234486a2cd05a8beca78bcf89fe47d167
authorPiyou Chen <piyou.chen@sifive.com>
Wed, 21 Aug 2024 08:46:59 +0000 (21 16:46 +0800)
committerGitHub <noreply@github.com>
Wed, 21 Aug 2024 08:46:59 +0000 (21 16:46 +0800)
tree388a9b7e0513321b1c3c90b85fff145b94949918
parent6c189eaea9941898e7379903d10274dbf6e2c545
[RISCV] Make EmitRISCVCpuSupports accept multiple features (#104917)

This patch creates an additional EmitRISCVCpuSupports function to handle
situations with multiple features. It also modifies the original
EmitRISCVCpuSupports function to invoke the new one.
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/test/CodeGen/builtin-cpu-supports.c
llvm/include/llvm/TargetParser/RISCVISAInfo.h