[clang] [flang] [mlir] [flang] Add basic -mtune support (PR #95043)
Christian Ulmann via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 10 22:42:15 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)
----------------
Dinistro wrote:
Nit: `strcmp` is a C function. I assume that `A->getValue()` returns a StringRef, or something else that supports normal `==` comparison.
https://github.com/llvm/llvm-project/pull/95043
More information about the cfe-commits
mailing list