[clang] [llvm] [LoongArch] [CodeGen] Add options for Clang to generate LoongArch-specific frecipe & frsqrte instructions (PR #109917)

Lu Weining via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 10 20:22:10 PDT 2024


================
@@ -251,6 +251,16 @@ void loongarch::getLoongArchTargetFeatures(const Driver &D,
     } else /*-mno-lasx*/
       Features.push_back("-lasx");
   }
+
+  // Select frecipe feature determined by -m[no-]frecipe.
+  if (const Arg *A =
+          Args.getLastArg(options::OPT_mfrecipe, options::OPT_mno_frecipe)) {
+    // -mno-frecipe conflicts with -mfrecipe.
----------------
SixWeining wrote:

-mno-frecipe doesn't conflict with -mfrecipe. They can appear together but the last one wins. You can remove this comment.

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


More information about the cfe-commits mailing list