================ @@ -3056,6 +3056,45 @@ bool Sema::checkTargetVersionAttr(SourceLocation LiteralLoc, Decl *D, enum SecondParam { None }; enum ThirdParam { Target, TargetClones, TargetVersion }; llvm::SmallVector<StringRef, 8> Features; + if (Context.getTargetInfo().getTriple().isRISCV()) { + + llvm::SmallVector<StringRef, 8> AttrStrs; + AttrStr.split(AttrStrs, ';'); + + bool IsPriority = false; + bool IsDefault = false; + for (auto &AttrStr : AttrStrs) { + // Only support arch=+ext,... syntax. ---------------- topperc wrote:
What about `arch=+c;arch=+f` or `default;default`? https://github.com/llvm/llvm-project/pull/99040 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits