diff options
author | Piyou Chen <piyou.chen@sifive.com> | 2024-08-21 16:46:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-21 16:46:59 +0800 |
commit | 126b56a234486a2cd05a8beca78bcf89fe47d167 (patch) | |
tree | 388a9b7e0513321b1c3c90b85fff145b94949918 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 6c189eaea9941898e7379903d10274dbf6e2c545 (diff) | |
download | llvm-126b56a234486a2cd05a8beca78bcf89fe47d167.zip llvm-126b56a234486a2cd05a8beca78bcf89fe47d167.tar.gz llvm-126b56a234486a2cd05a8beca78bcf89fe47d167.tar.bz2 |
[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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 57e0b7f..e1b9ada 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -4704,6 +4704,7 @@ public: ReturnValueSlot ReturnValue); llvm::Value *EmitRISCVCpuSupports(const CallExpr *E); + llvm::Value *EmitRISCVCpuSupports(ArrayRef<StringRef> FeaturesStrs); llvm::Value *EmitRISCVCpuInit(); void AddAMDGPUFenceAddressSpaceMMRA(llvm::Instruction *Inst, |