diff options
author | Tom Eccles <tom.eccles@arm.com> | 2022-11-29 11:06:27 +0000 |
---|---|---|
committer | Tom Eccles <tom.eccles@arm.com> | 2022-11-29 17:15:05 +0000 |
commit | 6841c43f36ee50c0f87bac8146d16fc4ee0b3ab0 (patch) | |
tree | 5eebdb96312dddc5cd573666d51b850adea1962f /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | dee009d3b5c71a340eb4ebb3cfb49f6015a789cc (diff) | |
download | llvm-6841c43f36ee50c0f87bac8146d16fc4ee0b3ab0.zip llvm-6841c43f36ee50c0f87bac8146d16fc4ee0b3ab0.tar.gz llvm-6841c43f36ee50c0f87bac8146d16fc4ee0b3ab0.tar.bz2 |
[flang] Remove warnings that fast-math options are unimplemented
These are now fully implemented, see
https://reviews.llvm.org/D137390
https://reviews.llvm.org/D137391
https://reviews.llvm.org/D137456
https://reviews.llvm.org/D137580
https://reviews.llvm.org/D137602
https://reviews.llvm.org/D138048
These flags are still tested in
flang/test/Driver/frontend-forwarding.f90 and
flang/test/Lower/fast-math-arithmetic.f90
Differential revision: https://reviews.llvm.org/D138907
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index f0f070e..c065485 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -677,8 +677,6 @@ static bool parseFloatingPointArgs(CompilerInvocation &invoc, llvm::opt::ArgList &args, clang::DiagnosticsEngine &diags) { LangOptions &opts = invoc.getLangOpts(); - const unsigned diagUnimplemented = diags.getCustomDiagID( - clang::DiagnosticsEngine::Warning, "%0 is not currently implemented"); if (const llvm::opt::Arg *a = args.getLastArg(clang::driver::options::OPT_ffp_contract)) { @@ -695,43 +693,36 @@ static bool parseFloatingPointArgs(CompilerInvocation &invoc, return false; } - diags.Report(diagUnimplemented) << a->getOption().getName(); opts.setFPContractMode(fpContractMode); } if (const llvm::opt::Arg *a = args.getLastArg(clang::driver::options::OPT_menable_no_infinities)) { - diags.Report(diagUnimplemented) << a->getOption().getName(); opts.NoHonorInfs = true; } if (const llvm::opt::Arg *a = args.getLastArg(clang::driver::options::OPT_menable_no_nans)) { - diags.Report(diagUnimplemented) << a->getOption().getName(); opts.NoHonorNaNs = true; } if (const llvm::opt::Arg *a = args.getLastArg(clang::driver::options::OPT_fapprox_func)) { - diags.Report(diagUnimplemented) << a->getOption().getName(); opts.ApproxFunc = true; } if (const llvm::opt::Arg *a = args.getLastArg(clang::driver::options::OPT_fno_signed_zeros)) { - diags.Report(diagUnimplemented) << a->getOption().getName(); opts.NoSignedZeros = true; } if (const llvm::opt::Arg *a = args.getLastArg(clang::driver::options::OPT_mreassociate)) { - diags.Report(diagUnimplemented) << a->getOption().getName(); opts.AssociativeMath = true; } if (const llvm::opt::Arg *a = args.getLastArg(clang::driver::options::OPT_freciprocal_math)) { - diags.Report(diagUnimplemented) << a->getOption().getName(); opts.ReciprocalMath = true; } |