[clang] [RISCV][clang] Optimize memory usage of intrinsic lookup table (PR #77487)
Brandon Wu via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 14 23:49:25 PST 2024
================
@@ -380,14 +380,14 @@ void RISCVIntrinsicManagerImpl::InitRVVIntrinsic(
OverloadedName += "_" + OverloadedSuffixStr.str();
// clang built-in function name, e.g. __builtin_rvv_vadd.
- std::string BuiltinName = "__builtin_rvv_" + std::string(Record.Name);
+ std::string BuiltinName = std::string(Record.Name);
RVVIntrinsic::updateNamesAndPolicy(IsMasked, HasPolicy, Name, BuiltinName,
OverloadedName, PolicyAttrs,
Record.HasFRMRoundModeOp);
// Put into IntrinsicList.
- uint32_t Index = IntrinsicList.size();
+ uint16_t Index = IntrinsicList.size();
----------------
4vtomat wrote:
Currently we have 54848 RVV intrinsics.
https://github.com/llvm/llvm-project/pull/77487
More information about the cfe-commits
mailing list