[llvm-branch-commits] [flang] [flang] Remove legacy stack-arrays and memory-allocation-opt passes - memory passes unification [5/5] (PR #210930)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jul 29 04:42:42 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

The build failed before running any tests. Click on a failure below to see the details.

<details>
<summary>[code=1] tools/flang/lib/Optimizer/Passes/CMakeFiles/flangPasses.dir/Pipelines.cpp.obj</summary>

```
FAILED: [code=1] tools/flang/lib/Optimizer/Passes/CMakeFiles/flangPasses.dir/Pipelines.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DFLANG_INCLUDE_TESTS=1 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\flang\lib\Optimizer\Passes -IC:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes -IC:\_work\llvm-project\llvm-project\flang\include -IC:\_work\llvm-project\llvm-project\build\tools\flang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include -imsvcC:\_work\llvm-project\llvm-project\flang\..\mlir\include -imsvcC:\_work\llvm-project\llvm-project\build\tools\mlir\include -imsvcC:\_work\llvm-project\llvm-project\build\tools\clang\include -imsvcC:\_work\llvm-project\llvm-project\llvm\..\clang\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\flang\lib\Optimizer\Passes\CMakeFiles\flangPasses.dir\Pipelines.cpp.obj /Fdtools\flang\lib\Optimizer\Passes\CMakeFiles\flangPasses.dir\flangPasses.pdb -c -- C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(72,3): error: use of undeclared identifier 'addNestedPassConditionally'; did you mean 'fir::addNestedPassConditionally'?
72 |   addNestedPassConditionally<mlir::func::FuncOp>(
|   ^~~~~~~~~~~~~~~~~~~~~~~~~~
|   fir::addNestedPassConditionally
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(57,6): note: 'fir::addNestedPassConditionally' declared here
57 | void addNestedPassConditionally(mlir::PassManager &pm,
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(72,3): warning: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension [-Wc++20-extensions]
72 |   addNestedPassConditionally<mlir::func::FuncOp>(
|   ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(85,3): error: use of undeclared identifier 'addPassConditionally'; did you mean 'fir::addPassConditionally'?
85 |   addPassConditionally(pm, disableCodeGenRewrite,
|   ^~~~~~~~~~~~~~~~~~~~
|   fir::addPassConditionally
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(50,6): note: 'fir::addPassConditionally' declared here
50 | void addPassConditionally(mlir::PassManager &pm, llvm::cl::opt<bool> &disabled,
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(90,3): error: use of undeclared identifier 'addPassConditionally'; did you mean 'fir::addPassConditionally'?
90 |   addPassConditionally(pm, disableTargetRewrite,
|   ^~~~~~~~~~~~~~~~~~~~
|   fir::addPassConditionally
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(50,6): note: 'fir::addPassConditionally' declared here
50 | void addPassConditionally(mlir::PassManager &pm, llvm::cl::opt<bool> &disabled,
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(120,3): error: use of undeclared identifier 'addPassConditionally'; did you mean 'fir::addPassConditionally'?
120 |   addPassConditionally(pm, disableDebugInfo,
|   ^~~~~~~~~~~~~~~~~~~~
|   fir::addPassConditionally
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(50,6): note: 'fir::addPassConditionally' declared here
50 | void addPassConditionally(mlir::PassManager &pm, llvm::cl::opt<bool> &disabled,
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(140,3): error: use of undeclared identifier 'addPassConditionally'; did you mean 'fir::addPassConditionally'?
140 |   addPassConditionally(pm, disableFirToLlvmIr,
|   ^~~~~~~~~~~~~~~~~~~~
|   fir::addPassConditionally
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(50,6): note: 'fir::addPassConditionally' declared here
50 | void addPassConditionally(mlir::PassManager &pm, llvm::cl::opt<bool> &disabled,
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(144,3): error: use of undeclared identifier 'addPassConditionally'; did you mean 'fir::addPassConditionally'?
144 |   addPassConditionally(pm, disableFirToLlvmIr, [&]() {
|   ^~~~~~~~~~~~~~~~~~~~
|   fir::addPassConditionally
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(50,6): note: 'fir::addPassConditionally' declared here
50 | void addPassConditionally(mlir::PassManager &pm, llvm::cl::opt<bool> &disabled,
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(151,3): error: use of undeclared identifier 'addPassConditionally'; did you mean 'fir::addPassConditionally'?
151 |   addPassConditionally(pm, disableLlvmIrToLlvm, [&]() {
|   ^~~~~~~~~~~~~~~~~~~~
|   fir::addPassConditionally
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(50,6): note: 'fir::addPassConditionally' declared here
50 | void addPassConditionally(mlir::PassManager &pm, llvm::cl::opt<bool> &disabled,
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(158,3): error: use of undeclared identifier 'addPassConditionally'; did you mean 'fir::addPassConditionally'?
158 |   addPassConditionally(pm, disableBoxedProcedureRewrite, [&]() {
|   ^~~~~~~~~~~~~~~~~~~~
|   fir::addPassConditionally
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(50,6): note: 'fir::addPassConditionally' declared here
50 | void addPassConditionally(mlir::PassManager &pm, llvm::cl::opt<bool> &disabled,
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(170,3): error: use of undeclared identifier 'addPassConditionally'; did you mean 'fir::addPassConditionally'?
170 |   addPassConditionally(pm, disableExternalNameConversion, [&]() {
|   ^~~~~~~~~~~~~~~~~~~~
|   fir::addPassConditionally
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(50,6): note: 'fir::addPassConditionally' declared here
50 | void addPassConditionally(mlir::PassManager &pm, llvm::cl::opt<bool> &disabled,
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(176,3): error: use of undeclared identifier 'addPassConditionally'; did you mean 'fir::addPassConditionally'?
176 |   addPassConditionally(pm, disableCompilerGeneratedNamesConversion, [&]() {
|   ^~~~~~~~~~~~~~~~~~~~
|   fir::addPassConditionally
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(50,6): note: 'fir::addPassConditionally' declared here
50 | void addPassConditionally(mlir::PassManager &pm, llvm::cl::opt<bool> &disabled,
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(189,24): error: use of undeclared identifier 'addCanonicalizerPassWithoutRegionSimplification'; did you mean 'fir::addCanonicalizerPassWithoutRegionSimplification'?
189 |             pipelines, addCanonicalizerPassWithoutRegionSimplification));
|                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                        fir::addCanonicalizerPassWithoutRegionSimplification
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(53,6): note: 'fir::addCanonicalizerPassWithoutRegionSimplification' declared here
53 | void addCanonicalizerPassWithoutRegionSimplification(mlir::OpPassManager &pm) {
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(207,40): error: unknown type name 'PassConstructor'; did you mean 'fir::PassConstructor'?
207 |   addNestedPassToAllTopLevelOperations<PassConstructor>(
|                                        ^~~~~~~~~~~~~~~
|                                        fir::PassConstructor
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(34,7): note: 'fir::PassConstructor' declared here
34 | using PassConstructor = std::unique_ptr<mlir::Pass>();
|       ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(207,3): warning: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension [-Wc++20-extensions]
207 |   addNestedPassToAllTopLevelOperations<PassConstructor>(
|   ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(251,40): error: unknown type name 'PassConstructor'; did you mean 'fir::PassConstructor'?
251 |   addNestedPassToAllTopLevelOperations<PassConstructor>(
|                                        ^~~~~~~~~~~~~~~
|                                        fir::PassConstructor
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(34,7): note: 'fir::PassConstructor' declared here
34 | using PassConstructor = std::unique_ptr<mlir::Pass>();
|       ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(251,3): error: use of undeclared identifier 'addNestedPassToAllTopLevelOperations'; did you mean 'fir::addNestedPassToAllTopLevelOperations'?
251 |   addNestedPassToAllTopLevelOperations<PassConstructor>(
|   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|   fir::addNestedPassToAllTopLevelOperations
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(33,6): note: 'fir::addNestedPassToAllTopLevelOperations' declared here
33 | void addNestedPassToAllTopLevelOperations(mlir::PassManager &pm, F ctor) {
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(251,3): warning: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension [-Wc++20-extensions]
251 |   addNestedPassToAllTopLevelOperations<PassConstructor>(
|   ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(276,35): error: unknown type name 'EnableOpenMP'; did you mean 'fir::EnableOpenMP'?
276 |                                   EnableOpenMP enableOpenMP,
|                                   ^~~~~~~~~~~~
|                                   fir::EnableOpenMP
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(129,12): note: 'fir::EnableOpenMP' declared here
129 | enum class EnableOpenMP { None, Simd, Full };
|            ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(280,42): error: unknown type name 'PassConstructor'; did you mean 'fir::PassConstructor'?
280 |     addNestedPassToAllTopLevelOperations<PassConstructor>(
|                                          ^~~~~~~~~~~~~~~
|                                          fir::PassConstructor
C:\_work\llvm-project\llvm-project\flang\include\flang/Optimizer/Passes/Pipelines.h(34,7): note: 'fir::PassConstructor' declared here
34 | using PassConstructor = std::unique_ptr<mlir::Pass>();
|       ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(280,5): error: use of undeclared identifier 'addNestedPassToAllTopLevelOperations'; did you mean 'fir::addNestedPassToAllTopLevelOperations'?
280 |     addNestedPassToAllTopLevelOperations<PassConstructor>(
|     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|     fir::addNestedPassToAllTopLevelOperations
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(33,6): note: 'fir::addNestedPassToAllTopLevelOperations' declared here
33 | void addNestedPassToAllTopLevelOperations(mlir::PassManager &pm, F ctor) {
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(280,5): warning: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension [-Wc++20-extensions]
280 |     addNestedPassToAllTopLevelOperations<PassConstructor>(
|     ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(282,5): error: use of undeclared identifier 'addCanonicalizerPassWithoutRegionSimplification'; did you mean 'fir::addCanonicalizerPassWithoutRegionSimplification'?
282 |     addCanonicalizerPassWithoutRegionSimplification(pm);
|     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|     fir::addCanonicalizerPassWithoutRegionSimplification
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(53,6): note: 'fir::addCanonicalizerPassWithoutRegionSimplification' declared here
53 | void addCanonicalizerPassWithoutRegionSimplification(mlir::OpPassManager &pm) {
|      ^
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(283,5): error: use of undeclared identifier 'addNestedPassToAllTopLevelOperations'; did you mean 'fir::addNestedPassToAllTopLevelOperations'?
283 |     addNestedPassToAllTopLevelOperations(pm, [&]() {
|     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|     fir::addNestedPassToAllTopLevelOperations
C:\_work\llvm-project\llvm-project\flang\lib\Optimizer\Passes\Pipelines.cpp(33,6): note: 'fir::addNestedPassToAllTopLevelOperations' declared here
33 | void addNestedPassToAllTopLevelOperations(mlir::PassManager &pm, F ctor) {
|      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
4 warnings and 20 errors generated.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-branch-commits mailing list