[flang-commits] [clang] [flang] [mlir] [flang] Add support for -mrecip[=<list>] (PR #143418)
Cameron McInally via flang-commits
flang-commits at lists.llvm.org
Mon Jun 9 12:32:13 PDT 2025
================
@@ -1549,6 +1549,9 @@ LogicalResult ModuleTranslation::convertOneFunction(LLVMFuncOp func) {
if (auto tuneCpu = func.getTuneCpu())
llvmFunc->addFnAttr("tune-cpu", *tuneCpu);
+ if (auto reciprocalEstimates = func.getReciprocalEstimates())
----------------
mcinally wrote:
It is `std::optional`:
```
::std::optional< ::llvm::StringRef > getReciprocalEstimates();
```
The others that return an optional `StringRef` also use `auto` as well:
```
::std::optional< ::llvm::StringRef > getTargetCpu();
```
I'll leave this if no objections.
https://github.com/llvm/llvm-project/pull/143418
More information about the flang-commits
mailing list