[clang] [flang] [mlir] [flang] Add support for -mprefer-vector-width=<value> (PR #141380)
via cfe-commits
cfe-commits at lists.llvm.org
Sat May 24 13:48:45 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- flang/include/flang/Frontend/CodeGenOptions.h flang/include/flang/Tools/CrossToolHelpers.h flang/lib/Frontend/CompilerInvocation.cpp flang/lib/Frontend/FrontendActions.cpp flang/lib/Optimizer/Passes/Pipelines.cpp flang/lib/Optimizer/Transforms/FunctionAttr.cpp mlir/lib/Target/LLVMIR/ModuleImport.cpp mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp
index 122eb56fa..918323d66 100644
--- a/flang/lib/Frontend/CompilerInvocation.cpp
+++ b/flang/lib/Frontend/CompilerInvocation.cpp
@@ -310,8 +310,8 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts,
opts.LLVMPassPlugins.push_back(a->getValue());
// -mprefer_vector_width option
- if (const llvm::opt::Arg *a =
- args.getLastArg(clang::driver::options::OPT_mprefer_vector_width_EQ)) {
+ if (const llvm::opt::Arg *a = args.getLastArg(
+ clang::driver::options::OPT_mprefer_vector_width_EQ)) {
llvm::StringRef s = a->getValue();
unsigned Width;
if (s == "none")
``````````
</details>
https://github.com/llvm/llvm-project/pull/141380
More information about the cfe-commits
mailing list