[clang-tools-extra] [mlir] [clang-tidy][mlir] Add check for passing value type by reference. (PR #179882)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 5 00:29:21 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 10559 tests passed
* 607 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang Tools
<details>
<summary>Clang Tools.clang-tidy/infrastructure/alphabetical-order.test</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/../../../clang-tidy/tool/check_alphabetical_order.py -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/alphabetical-order.test.tmp.clang-tidy-checks-list.rst
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/../../../clang-tidy/tool/check_alphabetical_order.py -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/alphabetical-order.test.tmp.clang-tidy-checks-list.rst
# note: command had no output on stdout or stderr
# RUN: at line 2
diff --strip-trailing-cr /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/../../../docs/clang-tidy/checks/list.rst /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/alphabetical-order.test.tmp.clang-tidy-checks-list.rst
# executed command: diff --strip-trailing-cr /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/../../../docs/clang-tidy/checks/list.rst /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/alphabetical-order.test.tmp.clang-tidy-checks-list.rst
# note: command had no output on stdout or stderr
# RUN: at line 4
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/../../../clang-tidy/tool/check_alphabetical_order.py -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/alphabetical-order.test.tmp.ReleaseNotes.rst
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/../../../clang-tidy/tool/check_alphabetical_order.py -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/alphabetical-order.test.tmp.ReleaseNotes.rst
# .---command stderr------------
# |
# | Entries in 'clang-tools-extra/docs/ReleaseNotes.rst' are not alphabetically sorted.
# | Fix the ordering by applying diff printed below.
# |
# `-----------------------------
# RUN: at line 5
diff --strip-trailing-cr /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/../../../docs/ReleaseNotes.rst /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/alphabetical-order.test.tmp.ReleaseNotes.rst
# executed command: diff --strip-trailing-cr /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/../../../docs/ReleaseNotes.rst /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/alphabetical-order.test.tmp.ReleaseNotes.rst
# .---command stdout------------
# | *** /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/../../../docs/ReleaseNotes.rst
# | --- /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/alphabetical-order.test.tmp.ReleaseNotes.rst
# | ***************
# | *** 97,107 ****
# | New checks
# | ^^^^^^^^^^
# |
# | - - New :doc:`avoid-passing-mlir-op-as-ref`
# | - <clang-tidy/checks/llvm/avoid-passing-mlir-op-as-ref>` check.
# | -
# | - Finds cases where ``mlir::Op`` derived classes are passed by reference.
# | -
# | - New :doc:`llvm-type-switch-case-types
# | <clang-tidy/checks/llvm/type-switch-case-types>` check.
# |
# | --- 97,102 ----
# | ***************
# | *** 139,144 ****
# | --- 134,144 ----
# | Checks for presence or absence of trailing commas in enum definitions and
# | initializer lists.
# |
# | + - New :doc:`avoid-passing-mlir-op-as-ref`
# | + <clang-tidy/checks/llvm/avoid-passing-mlir-op-as-ref>` check.
# | +
# | + Finds cases where ``mlir::Op`` derived classes are passed by reference.
# | +
# | New check aliases
# | ^^^^^^^^^^^^^^^^^
# |
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
### MLIR
<details>
<summary>MLIR.Dialect/SCF/parallel-loop-fusion.mlir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt -allow-unregistered-dialect /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/SCF/parallel-loop-fusion.mlir -pass-pipeline='builtin.module(func.func(scf-parallel-loop-fusion))' -split-input-file | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/SCF/parallel-loop-fusion.mlir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt -allow-unregistered-dialect /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/SCF/parallel-loop-fusion.mlir '-pass-pipeline=builtin.module(func.func(scf-parallel-loop-fusion))' -split-input-file
# .---command stderr------------
# | mlir-opt: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/IR/OpDefinition.h:907: Block *mlir::OpTrait::SingleBlock<mlir::scf::ParallelOp>::getBody(unsigned int) [ConcreteType = mlir::scf::ParallelOp]: Assertion `!region.empty() && "unexpected empty region"' failed.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0. Program arguments: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt -allow-unregistered-dialect /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/SCF/parallel-loop-fusion.mlir -pass-pipeline=builtin.module(func.func(scf-parallel-loop-fusion)) -split-input-file
# | #0 0x0000000007ac2128 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:842:13
# | #1 0x0000000007abf745 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x0000000007ac2ef1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:429:38
# | #3 0x00007aed7d99a330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #4 0x00007aed7d9f3b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #5 0x00007aed7d99a27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #6 0x00007aed7d97d8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #7 0x00007aed7d97d81b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #8 0x00007aed7d990517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #9 0x000000000ec3b7d4 fuseIfLegal /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Dialect/SCF/Transforms/ParallelLoopFusion.cpp:0:0
# | #10 0x000000000ec3b7d4 mlir::scf::naivelyFuseParallelOps(mlir::Region&, llvm::function_ref<bool (mlir::Value, mlir::Value)>) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Dialect/SCF/Transforms/ParallelLoopFusion.cpp:263:9
# | #11 0x000000000ec3d59e operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Dialect/SCF/Transforms/ParallelLoopFusion.cpp:279:27
# | #12 0x000000000ec3d59e void llvm::function_ref<void (mlir::Operation*)>::callback_fn<(anonymous namespace)::ParallelLoopFusion::runOnOperation()::'lambda'(mlir::Operation*)>(long, mlir::Operation*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
# | #13 0x000000000ec3d420 (anonymous namespace)::ParallelLoopFusion::runOnOperation() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Dialect/SCF/Transforms/ParallelLoopFusion.cpp:282:3
# | #14 0x0000000010597b42 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:0:19
# | #15 0x0000000010597b42 callback_fn<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:607:9)> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
# | #16 0x0000000010597b42 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
# | #17 0x0000000010597b42 executeAction<mlir::PassExecutionAction, mlir::Pass &> /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/IR/MLIRContext.h:290:7
# | #18 0x0000000010597b42 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:606:23
# | #19 0x0000000010598937 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:688:9
# | #20 0x00000000105a39ce operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:1004:9
# | #21 0x00000000105a39ce auto void mlir::parallelForEach<__gnu_cxx::__normal_iterator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo>>>, mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::$_12>(mlir::MLIRContext*, __gnu_cxx::__normal_iterator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo>>>, __gnu_cxx::__normal_iterator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo>>>, mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::$_12&&)::'lambda'(__gnu_cxx::__normal_iterator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo>>>&&)::operator()<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo&>(__gnu_cxx::__normal_iterator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo*, std::vector<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo, std::allocator<mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool)::OpPMInfo>>>&&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/IR/Threading.h:120:12
# | #22 0x000000001059b818 failableParallelForEach<__gnu_cxx::__normal_iterator<OpPMInfo *, std::vector<OpPMInfo, std::allocator<OpPMInfo> > >, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/IR/Threading.h:119:54)> /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/IR/Threading.h:0:18
# | #23 0x000000001059b818 parallelForEach<__gnu_cxx::__normal_iterator<OpPMInfo *, std::vector<OpPMInfo, std::allocator<OpPMInfo> > >, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:991:37)> /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/IR/Threading.h:119:9
# | #24 0x000000001059b818 parallelForEach<std::vector<OpPMInfo, std::allocator<OpPMInfo> > &, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:991:37)> /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/IR/Threading.h:131:3
# | #25 0x000000001059b818 mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:991:3
# | #26 0x0000000010597d29 runOnOperation /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:0:5
# | #27 0x0000000010597d29 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:610:22
# | #28 0x0000000010597d29 callback_fn<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:607:9)> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
# | #29 0x0000000010597d29 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
# | #30 0x0000000010597d29 executeAction<mlir::PassExecutionAction, mlir::Pass &> /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/include/mlir/IR/MLIRContext.h:290:7
# | #31 0x0000000010597d29 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:606:23
# | #32 0x0000000010598937 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:688:9
# | #33 0x000000001059fe0b mlir::PassManager::runPasses(mlir::Operation*, mlir::AnalysisManager) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:1123:3
# | #34 0x000000001059f468 mlir::PassManager::run(mlir::Operation*) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Pass/Pass.cpp:1097:0
# | #35 0x0000000007ad36ba performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp:591:7
# | #36 0x0000000007ad29f8 processBuffer /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp:673:12
# | #37 0x0000000007ad29f8 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp:771:12
# | #38 0x0000000007ad29f8 llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
# | #39 0x00000000108c1ba4 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
# | #40 0x00000000108c1ba4 mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef)::$_0::operator()(llvm::StringRef) const /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Support/ToolUtilities.cpp:94:13
# | #41 0x00000000108c183f interleave<const llvm::StringRef *, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Support/ToolUtilities.cpp:81:23), (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2291:49), void> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:0:0
# | #42 0x00000000108c183f interleave<llvm::SmallVector<llvm::StringRef, 8U>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Support/ToolUtilities.cpp:81:23), llvm::raw_ostream, llvm::StringRef> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:2291:3
# | #43 0x00000000108c183f mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Support/ToolUtilities.cpp:97:3
# | #44 0x0000000007ac80e6 mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp:776:26
# | #45 0x0000000007ac8412 mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp:822:14
# | #46 0x0000000007ac868b mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Tools/mlir-opt/MlirOptMain.cpp:838:10
# | #47 0x0000000007a07333 main /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/tools/mlir-opt/mlir-opt.cpp:347:33
# | #48 0x00007aed7d97f1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #49 0x00007aed7d97f28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #50 0x0000000007a06e65 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt+0x7a06e65)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/SCF/parallel-loop-fusion.mlir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/SCF/parallel-loop-fusion.mlir:127:17: error: CHECK-LABEL: expected string not found in input
# | // CHECK-LABEL: func @fuse_three
# | ^
# | <stdin>:29:21: note: scanning from here
# | func.func @fuse_two(%arg0: memref<2x2xf32>, %arg1: memref<2x2xf32>) {
# | ^
# | <stdin>:43:2: note: possible intended match here
# | scf.reduce
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/SCF/parallel-loop-fusion.mlir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 24: }
# | 25: }
# | 26:
# | 27: // -----
# | 28: module {
# | 29: func.func @fuse_two(%arg0: memref<2x2xf32>, %arg1: memref<2x2xf32>) {
# | label:127'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 30: %c2 = arith.constant 2 : index
# | label:127'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 31: %c0 = arith.constant 0 : index
# | label:127'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 32: %c1 = arith.constant 1 : index
# | label:127'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 33: %cst = arith.constant 1.000000e+00 : f32
# | label:127'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 34: %alloc = memref.alloc() : memref<2x2xf32>
# | label:127'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 38: memref.store %1, %alloc[%arg2, %arg3] : memref<2x2xf32>
# | label:127'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 39: %2 = memref.load %alloc[%arg2, %arg3] : memref<2x2xf32>
# | label:127'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 40: %3 = memref.load %arg0[%arg2, %arg3] : memref<2x2xf32>
# | label:127'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 41: %4 = arith.mulf %2, %3 : f32
# | label:127'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 42: memref.store %4, %arg1[%arg2, %arg3] : memref<2x2xf32>
# | label:127'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 43: scf.reduce
# | label:127'0 ~~~~~~~~~~~~~
# | label:127'1 ? possible intended match
# | 44: }
# | label:127'0 ~~~
# | 45: memref.dealloc %alloc : memref<2x2xf32>
# | label:127'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 46: return
# | label:127'0 ~~~~~~~~
# | 47: }
# | label:127'0 ~~~
# | 48: }
# | label:127'0 ~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</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/179882
More information about the cfe-commits
mailing list