diff options
author | Tom Eccles <tom.eccles@arm.com> | 2022-10-19 10:51:31 +0000 |
---|---|---|
committer | Tom Eccles <tom.eccles@arm.com> | 2022-11-04 17:22:35 +0000 |
commit | d0d4b635786d510cd919cadbeb7e5e19983242cf (patch) | |
tree | 38cd877bb2440c8befbdf38d4ce92b5e047ed07e /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | c4dc3c029416a25103d631e8dc5422f65c076376 (diff) | |
download | llvm-d0d4b635786d510cd919cadbeb7e5e19983242cf.zip llvm-d0d4b635786d510cd919cadbeb7e5e19983242cf.tar.gz llvm-d0d4b635786d510cd919cadbeb7e5e19983242cf.tar.bz2 |
[flang] add -f[no-]reciprocal-math
Only add the option processing and store the result. No attributes are
added to FIR yet.
Differential Revision: https://reviews.llvm.org/D137330
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index 8c0bdcd..bb87ea2 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -726,6 +726,12 @@ static bool parseFloatingPointArgs(CompilerInvocation &invoc, 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; + } + return true; } |