diff options
author | Tom Eccles <tom.eccles@arm.com> | 2022-10-17 17:45:15 +0000 |
---|---|---|
committer | Tom Eccles <tom.eccles@arm.com> | 2022-11-04 17:22:34 +0000 |
commit | b5e93e390c06602cb03121ad875e2855253e2937 (patch) | |
tree | 022705723cbd69dd3f0e99c167bbd72b1496d46d /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | a7fa5febaa43d860cbd6a4061f239b283c4d8032 (diff) | |
download | llvm-b5e93e390c06602cb03121ad875e2855253e2937.zip llvm-b5e93e390c06602cb03121ad875e2855253e2937.tar.gz llvm-b5e93e390c06602cb03121ad875e2855253e2937.tar.bz2 |
[flang] Add -f[no-]honor-nans and -menable-no-nans
Only add the option processing and store the result. No attributes are
added to FIR yet.
Differential Revision: https://reviews.llvm.org/D137325
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 252e1a7..cce97ca 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -702,6 +702,12 @@ static bool parseFloatingPointArgs(CompilerInvocation &invoc, 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; + } + return true; } |