[clang] [flang] [mlir] [flang,acc] Support -ffp-maxmin-behavior option in lowering. (PR #184730)
Tarun Prabhu via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 5 15:09:30 PST 2026
================
@@ -296,16 +296,16 @@ static llvm::cl::opt<std::string> complexRange(
static llvm::cl::opt<Fortran::common::FPMaxminBehavior> fpMaxminBehavior(
"ffp-maxmin-behavior",
- llvm::cl::desc("Control MAX/MIN and [max|min][loc|val] lowering "
- "[legacy|portable|extremum|extremenum]"),
+ llvm::cl::desc("Control max/min and [max|min][loc|val] lowering "
+ "[legacy|portable|extremum|extremeNum]"),
llvm::cl::values(clEnumValN(Fortran::common::FPMaxminBehavior::Legacy,
"legacy", "Legacy (current cmp+select)"),
clEnumValN(Fortran::common::FPMaxminBehavior::Portable,
"portable", "Portable"),
clEnumValN(Fortran::common::FPMaxminBehavior::Extremum,
"extremum", "Extremum"),
- clEnumValN(Fortran::common::FPMaxminBehavior::Extremenum,
- "extremenum", "Extremenum")),
+ clEnumValN(Fortran::common::FPMaxminBehavior::ExtremeNum,
+ "extremeNum", "ExtremeNum")),
----------------
tarunprabhu wrote:
Would it be better to keep the spelling of the command-line option values consistent between `flang` and `bbc`?
```suggestion
"extremenum", "ExtremeNum")),
```
https://github.com/llvm/llvm-project/pull/184730
More information about the cfe-commits
mailing list