[PATCH] D147935: [RISCV] Add SiFive extension support
Brandon Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 24 03:13:24 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGcd5c4cb7e0ae: [RISCV] Add SiFive extension support (authored by kito-cheng, committed by 4vtomat).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147935/new/
https://reviews.llvm.org/D147935
Files:
clang/include/clang/Support/RISCVVIntrinsicUtils.h
clang/utils/TableGen/RISCVVEmitter.cpp
Index: clang/utils/TableGen/RISCVVEmitter.cpp
===================================================================
--- clang/utils/TableGen/RISCVVEmitter.cpp
+++ clang/utils/TableGen/RISCVVEmitter.cpp
@@ -633,6 +633,7 @@
RVVRequire RequireExt = StringSwitch<RVVRequire>(RequiredFeature)
.Case("RV64", RVV_REQ_RV64)
.Case("FullMultiply", RVV_REQ_FullMultiply)
+ .Case("Xsfvcp", RVV_REQ_Xsfvcp)
.Default(RVV_REQ_None);
assert(RequireExt != RVV_REQ_None && "Unrecognized required feature?");
SR.RequiredExtensions |= RequireExt;
Index: clang/include/clang/Support/RISCVVIntrinsicUtils.h
===================================================================
--- clang/include/clang/Support/RISCVVIntrinsicUtils.h
+++ clang/include/clang/Support/RISCVVIntrinsicUtils.h
@@ -462,8 +462,9 @@
RVV_REQ_None = 0,
RVV_REQ_RV64 = 1 << 0,
RVV_REQ_FullMultiply = 1 << 1,
+ RVV_REQ_Xsfvcp = 1 << 2,
- LLVM_MARK_AS_BITMASK_ENUM(RVV_REQ_FullMultiply)
+ LLVM_MARK_AS_BITMASK_ENUM(RVV_REQ_Xsfvcp)
};
// Raw RVV intrinsic info, used to expand later.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147935.516339.patch
Type: text/x-patch
Size: 1203 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230424/2da84042/attachment.bin>
More information about the cfe-commits
mailing list