================ @@ -854,6 +854,81 @@ RISCVISAInfo::parseArchString(StringRef Arch, bool EnableExperimentalExtension, "string must be lowercase"); } + bool IsProfile = Arch.starts_with("rvi") || Arch.starts_with("rva") || + Arch.starts_with("rvb") || Arch.starts_with("rvm"); + std::string NewArch; + if (IsProfile) { + // A mapping from profile name to march string with all mandatory + // extensions. + static const std::map<StringLiteral, StringLiteral> SupportedProfiles = { ---------------- wangpc-pp wrote:
Is there a global constructor/destructor if it is inside a function and lazily initialized? https://github.com/llvm/llvm-project/pull/76357 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits