[clang] [flang] [mlir] [flang] Add support for -mprefer-vector-width=<value> (PR #141380)

Eugene Epshteyn via cfe-commits cfe-commits at lists.llvm.org
Thu May 29 08:47:52 PDT 2025


================
@@ -126,6 +127,8 @@ struct MLIRToLLVMPassPipelineConfig : public FlangEPCallBacks {
   bool NoSignedZerosFPMath =
       false; ///< Set no-signed-zeros-fp-math attribute for functions.
   bool UnsafeFPMath = false; ///< Set unsafe-fp-math attribute for functions.
+  std::string PreferVectorWidth = ""; ///< Set prefer-vector-width attribute for
----------------
eugeneepshteyn wrote:

Don't need to initialize to empty string here, because `std::string` is by default constructed as empty string. Calling `empty()` on default-constructed string would return `true`.

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


More information about the cfe-commits mailing list