[llvm] [llvm][mc][riscv] MC support of T-Head vector extension (xtheadvector) (PR #84447)
Wang Pengcheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 8 01:14:34 PST 2024
================
@@ -406,11 +420,8 @@ bool RISCVISAInfo::isSupportedExtension(StringRef Ext, unsigned MajorVersion,
unsigned MinorVersion) {
for (auto ExtInfo : {ArrayRef(SupportedExtensions),
ArrayRef(SupportedExperimentalExtensions)}) {
- auto Range =
- std::equal_range(ExtInfo.begin(), ExtInfo.end(), Ext, LessExtName());
- for (auto I = Range.first, E = Range.second; I != E; ++I)
- if (I->Version.Major == MajorVersion && I->Version.Minor == MinorVersion)
- return true;
+ return findExtensionIn(ExtInfo, Ext, MajorVersion, MinorVersion) !=
----------------
wangpc-pp wrote:
This change doesn't belong to this PR I think.
https://github.com/llvm/llvm-project/pull/84447
More information about the llvm-commits
mailing list