[clang] [flang] [mlir] [flang] Add support for -mrecip[=<list>] (PR #142172)

Kelvin Li via cfe-commits cfe-commits at lists.llvm.org
Fri May 30 09:17:34 PDT 2025


================
@@ -1251,6 +1251,164 @@ static bool parseIntegerOverflowArgs(CompilerInvocation &invoc,
   return true;
 }
 
+/// This is a helper function for validating the optional refinement step
+/// parameter in reciprocal argument strings. Return false if there is an error
+/// parsing the refinement step. Otherwise, return true and set the Position
+/// of the refinement step in the input string.
+///
+/// \param [in] in The input string
+/// \param [in] a The compiler invocation arguments to parse
+/// \param [out] position The position of the refinement step in input string
+/// \param [out] diags DiagnosticsEngine to report erros with
----------------
kkwli wrote:

erros → errors

https://github.com/llvm/llvm-project/pull/142172


More information about the cfe-commits mailing list