[Mlir-commits] [mlir] [mlir][Transforms] Add 1:N `matchAndRewrite` overload (PR #116470)

LLVM Continuous Integration llvmlistbot at llvm.org
Fri Nov 29 16:36:21 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `flang-aarch64-libcxx` running on `linaro-flang-aarch64-libcxx` while building `mlir` at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/89/builds/11642

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (build-unified-tree) failure: build (failure)
...
165.690 [176/24/7087] Building CXX object tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/CharacterConversion.cpp.o
166.012 [176/23/7088] Building CXX object tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/MemoryAllocation.cpp.o
166.467 [176/22/7089] Building CXX object tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/AffineDemotion.cpp.o
166.470 [176/21/7090] Building CXX object tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/AffinePromotion.cpp.o
166.533 [176/20/7091] Building CXX object tools/flang/lib/Optimizer/HLFIR/Transforms/CMakeFiles/HLFIRTransforms.dir/BufferizeHLFIR.cpp.o
166.854 [176/19/7092] Building CXX object tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/AbstractResult.cpp.o
167.271 [176/18/7093] Building CXX object tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/AddDebugInfo.cpp.o
168.339 [176/17/7094] Building CXX object tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/SimplifyIntrinsics.cpp.o
168.535 [176/16/7095] Building CXX object tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/ArrayValueCopy.cpp.o
168.652 [176/15/7096] Building CXX object tools/flang/lib/Optimizer/CodeGen/CMakeFiles/FIRCodeGen.dir/CodeGen.cpp.o
FAILED: tools/flang/lib/Optimizer/CodeGen/CMakeFiles/FIRCodeGen.dir/CodeGen.cpp.o 
/usr/local/bin/c++ -DFLANG_INCLUDE_TESTS=1 -DFLANG_LITTLE_ENDIAN=1 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/tools/flang/lib/Optimizer/CodeGen -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/flang/lib/Optimizer/CodeGen -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/flang/include -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/tools/flang/include -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/llvm/include -isystem /home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/llvm/../mlir/include -isystem /home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/tools/mlir/include -isystem /home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/tools/clang/include -isystem /home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/llvm/../clang/include -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror -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 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/flang/lib/Optimizer/CodeGen/CMakeFiles/FIRCodeGen.dir/CodeGen.cpp.o -MF tools/flang/lib/Optimizer/CodeGen/CMakeFiles/FIRCodeGen.dir/CodeGen.cpp.o.d -o tools/flang/lib/Optimizer/CodeGen/CMakeFiles/FIRCodeGen.dir/CodeGen.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-libcxx/llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp
In file included from ../llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp:17:
../llvm-project/flang/include/flang/Optimizer/CodeGen/FIROpPatterns.h:228:16: error: 'fir::FIROpConversion<fir::AddrOfOp>::rewrite' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
  228 |   virtual void rewrite(SourceOp op, OpAdaptor adaptor,
      |                ^
../llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp:136:36: note: in instantiation of template class 'fir::FIROpConversion<fir::AddrOfOp>' requested here
  136 | struct AddrOfOpConversion : public fir::FIROpConversion<fir::AddrOfOp> {
      |                                    ^
../llvm-project/mlir/include/mlir/Transforms/DialectConversion.h:541:16: note: hidden overloaded virtual function 'mlir::ConversionPattern::rewrite' declared here: type mismatch at 1st parameter ('Operation *' vs 'fir::AddrOfOp')
  541 |   virtual void rewrite(Operation *op, ArrayRef<ValueRange> operands,
      |                ^
In file included from ../llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp:17:
../llvm-project/flang/include/flang/Optimizer/CodeGen/FIROpPatterns.h:228:16: error: 'fir::FIROpConversion<fir::cg::XDeclareOp>::rewrite' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
  228 |   virtual void rewrite(SourceOp op, OpAdaptor adaptor,
      |                ^
../llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp:197:37: note: in instantiation of template class 'fir::FIROpConversion<fir::cg::XDeclareOp>' requested here
  197 | struct DeclareOpConversion : public fir::FIROpConversion<fir::cg::XDeclareOp> {
      |                                     ^
../llvm-project/mlir/include/mlir/Transforms/DialectConversion.h:541:16: note: hidden overloaded virtual function 'mlir::ConversionPattern::rewrite' declared here: type mismatch at 1st parameter ('Operation *' vs 'fir::cg::XDeclareOp')
  541 |   virtual void rewrite(Operation *op, ArrayRef<ValueRange> operands,
      |                ^
In file included from ../llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp:17:
../llvm-project/flang/include/flang/Optimizer/CodeGen/FIROpPatterns.h:228:16: error: 'fir::FIROpConversion<fir::AllocaOp>::rewrite' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
  228 |   virtual void rewrite(SourceOp op, OpAdaptor adaptor,
      |                ^
../llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp:220:36: note: in instantiation of template class 'fir::FIROpConversion<fir::AllocaOp>' requested here
  220 | struct AllocaOpConversion : public fir::FIROpConversion<fir::AllocaOp> {
      |                                    ^
../llvm-project/mlir/include/mlir/Transforms/DialectConversion.h:541:16: note: hidden overloaded virtual function 'mlir::ConversionPattern::rewrite' declared here: type mismatch at 1st parameter ('Operation *' vs 'fir::AllocaOp')
  541 |   virtual void rewrite(Operation *op, ArrayRef<ValueRange> operands,
      |                ^
In file included from ../llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp:17:
../llvm-project/flang/include/flang/Optimizer/CodeGen/FIROpPatterns.h:228:16: error: 'fir::FIROpConversion<fir::BoxAddrOp>::rewrite' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
  228 |   virtual void rewrite(SourceOp op, OpAdaptor adaptor,
      |                ^
../llvm-project/flang/lib/Optimizer/CodeGen/CodeGen.cpp:325:37: note: in instantiation of template class 'fir::FIROpConversion<fir::BoxAddrOp>' requested here
  325 | struct BoxAddrOpConversion : public fir::FIROpConversion<fir::BoxAddrOp> {
      |                                     ^

```

</details>

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


More information about the Mlir-commits mailing list