[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: Linux-->
# :penguin: Linux x64 Test Results
The build failed before running any tests. Click on a failure below to see the details.
<details>
<summary>tools/flang/lib/Optimizer/Passes/CMakeFiles/flangPasses.dir/Pipelines.cpp.o</summary>
```
FAILED: tools/flang/lib/Optimizer/Passes/CMakeFiles/flangPasses.dir/Pipelines.cpp.o
sccache /opt/llvm/bin/clang++ -DFLANG_INCLUDE_TESTS=1 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/lib/Optimizer/Passes -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Optimizer/Passes -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/../mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../clang/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion -Wcovered-switch-default -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/flang/lib/Optimizer/Passes/CMakeFiles/flangPasses.dir/Pipelines.cpp.o -MF tools/flang/lib/Optimizer/Passes/CMakeFiles/flangPasses.dir/Pipelines.cpp.o.d -o tools/flang/lib/Optimizer/Passes/CMakeFiles/flangPasses.dir/Pipelines.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Optimizer/Passes/Pipelines.cpp
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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,
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Optimizer/Passes/Pipelines.cpp:72:3: error: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension [-Werror,-Wc++20-extensions]
72 | addNestedPassConditionally<mlir::func::FuncOp>(
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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,
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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,
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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,
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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,
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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,
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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,
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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,
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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,
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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,
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Optimizer/Passes/Pipelines.cpp:53:6: note: 'fir::addCanonicalizerPassWithoutRegionSimplification' declared here
53 | void addCanonicalizerPassWithoutRegionSimplification(mlir::OpPassManager &pm) {
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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>();
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Optimizer/Passes/Pipelines.cpp:207:3: error: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension [-Werror,-Wc++20-extensions]
207 | addNestedPassToAllTopLevelOperations<PassConstructor>(
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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>();
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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) {
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang/lib/Optimizer/Passes/Pipelines.cpp:251:3: error: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension [-Werror,-Wc++20-extensions]
251 | addNestedPassToAllTopLevelOperations<PassConstructor>(
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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 };
| ^
/home/gha/actions-runner/_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
/home/gha/actions-runner/_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>();
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
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