================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits