[clang] [RISCV][FMV] Support target_version (PR #99040)

Philip Reames via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 13 08:17:44 PDT 2024


================
@@ -10319,8 +10319,10 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC,
   // Handle attributes.
   ProcessDeclAttributes(S, NewFD, D);
   const auto *NewTVA = NewFD->getAttr<TargetVersionAttr>();
-  if (NewTVA && !NewTVA->isDefaultVersion() &&
-      !Context.getTargetInfo().hasFeature("fmv")) {
+  if (Context.getTargetInfo().getTriple().isRISCV()) {
----------------
preames wrote:

Do you happen to know what the "fmv" feature is?  I don't have context here.  Any docs, or a good starting point in the code to understand what we're leaving out here?

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


More information about the cfe-commits mailing list