[clang] [RISCV][clang] Optimize memory usage of intrinsic lookup table (PR #77487)

Brandon Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 15 00:37:56 PST 2024


================
@@ -416,8 +416,10 @@ class RVVIntrinsic {
   RVVTypePtr getOutputType() const { return OutputType; }
   const RVVTypes &getInputTypes() const { return InputTypes; }
   llvm::StringRef getBuiltinName() const { return BuiltinName; }
-  llvm::StringRef getName() const { return Name; }
-  llvm::StringRef getOverloadedName() const { return OverloadedName; }
+  llvm::StringRef getName() const { return "__riscv_" + Name; }
----------------
4vtomat wrote:

I just can't find where is `getName` and `getOverloadedName`, I just comment out this 2 member functions and run `ninja check-clang`, it passed.
Can we delete them?

https://github.com/llvm/llvm-project/pull/77487


More information about the cfe-commits mailing list