[clang] [RISCV][FMV] Support target_version (PR #99040)
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 19 15:47:59 PDT 2024
================
@@ -15501,8 +15511,10 @@ Decl *Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope, Decl *D,
FD->setInvalidDecl();
}
if (const auto *Attr = FD->getAttr<TargetVersionAttr>()) {
- if (!Context.getTargetInfo().hasFeature("fmv") &&
- !Attr->isDefaultVersion()) {
+ if (Context.getTargetInfo().getTriple().isRISCV()) {
----------------
topperc wrote:
Should we check AArch64 in the original `if` instead?
https://github.com/llvm/llvm-project/pull/99040
More information about the cfe-commits
mailing list