aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ProgramTest.cpp
diff options
context:
space:
mode:
authorTom Eccles <Tom.Eccles@arm.com>2022-10-31 11:30:32 +0000
committerKiran Chandramohan <kiran.chandramohan@arm.com>2022-10-31 11:32:31 +0000
commita784de783af5096e593c5e214c2c78215fe303f5 (patch)
tree2a28ce1db23ec96938387b793fb90b0fa1efc785 /llvm/unittests/Support/ProgramTest.cpp
parent0fe945300524ab0d92842f236cfee867204aed14 (diff)
downloadllvm-a784de783af5096e593c5e214c2c78215fe303f5.zip
llvm-a784de783af5096e593c5e214c2c78215fe303f5.tar.gz
llvm-a784de783af5096e593c5e214c2c78215fe303f5.tar.bz2
[flang] Add -ffp-contract option processing
Only add the option processing and store the result. No attributes are added to FIR yet. Only the "off" and "fast" options are supported. "fast-honor-pragmas" is not applicable because we do not implement `#pragma clang fp contract()` in Fortran [1]. "on" is not supported because it is unclear how to fuse only within individual statements. gfortran also does not implement "on": treating it as an "off". Currently the default value is "off" to preserve existing behavior. gfortran uses "fast" by default and that may be the right thing for flang-new after further discussion in the future, but that can be changed separately. gfortran's documentation is available [[ https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html | here ]]. [1] https://clang.llvm.org/docs/LanguageExtensions.html#extensions-to-specify-floating-point-flags Reviewed By: vzakhari, awarzynski Differential Revision: https://reviews.llvm.org/D136080
Diffstat (limited to 'llvm/unittests/Support/ProgramTest.cpp')
0 files changed, 0 insertions, 0 deletions