[Mlir-commits] [clang] [flang] [mlir] [flang] Add basic -mtune support (PR #95043)

Alexis Perry-Holby llvmlistbot at llvm.org
Thu Jun 20 14:27:46 PDT 2024


================
@@ -411,6 +412,13 @@ void Flang::addTargetOptions(const ArgList &Args,
   }
 
   // TODO: Add target specific flags, ABI, mtune option etc.
+  if (const Arg *A = Args.getLastArg(options::OPT_mtune_EQ)) {
+    CmdArgs.push_back("-tune-cpu");
+    if (strcmp(A->getValue(), "native") == 0)
----------------
AlexisPerry wrote:

Thank you for that!  I have made the requested update and there was no build warning.

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


More information about the Mlir-commits mailing list