[clang] [llvm] [RISCV] Support __builtin_cpu_init and __builtin_cpu_supports (PR #99700)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 22 16:09:36 PDT 2024


================
@@ -1020,3 +1020,43 @@ std::string RISCVISAInfo::getTargetFeatureForExtension(StringRef Ext) {
   return isExperimentalExtension(Name) ? "experimental-" + Name.str()
                                        : Name.str();
 }
+
+struct RISCVExtBit {
+  const StringRef ext;
----------------
topperc wrote:

Use StringLiteral.

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


More information about the llvm-commits mailing list