[Mlir-commits] [mlir] [MLIR] Add bufferization state class to OneShotBufferization pass (PR #138143)

LLVM Continuous Integration llvmlistbot at llvm.org
Thu May 22 00:06:44 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `mlir` at step 6 "build-unified-tree".

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

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

```
Step 6 (build-unified-tree) failure: build (failure)
...
34.680 [4522/58/165] Linking CXX executable bin/clang-fuzzer-dictionary
35.553 [4521/58/166] Building CXX object tools/mlir/lib/Dialect/SparseTensor/Transforms/CMakeFiles/obj.MLIRSparseTensorTransforms.dir/SparseStorageSpecifierToLLVM.cpp.o
35.674 [4520/58/167] Linking CXX executable bin/dexp
35.700 [4519/58/168] Building CXX object tools/mlir/lib/Dialect/Vector/Transforms/CMakeFiles/obj.MLIRVectorTransforms.dir/BufferizableOpInterfaceImpl.cpp.o
36.823 [4518/58/169] Linking CXX shared module lib/SampleAnalyzerPlugin.so
36.895 [4517/58/170] Building CXX object tools/mlir/test/lib/Dialect/Bufferization/CMakeFiles/MLIRBufferizationTestPasses.dir/TestTensorCopyInsertion.cpp.o
37.157 [4516/58/171] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
37.442 [4515/58/172] Linking CXX executable bin/clang-extdef-mapping
37.574 [4514/58/173] Linking CXX executable bin/clang-check
37.870 [4513/58/174] Building CXX object tools/mlir/lib/Dialect/Tensor/Transforms/CMakeFiles/obj.MLIRTensorTransforms.dir/BufferizableOpInterfaceImpl.cpp.o
FAILED: tools/mlir/lib/Dialect/Tensor/Transforms/CMakeFiles/obj.MLIRTensorTransforms.dir/BufferizableOpInterfaceImpl.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/clang++ -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/build/buildbot/premerge-monolithic-linux/build/tools/mlir/lib/Dialect/Tensor/Transforms -I/build/buildbot/premerge-monolithic-linux/llvm-project/mlir/lib/Dialect/Tensor/Transforms -I/build/buildbot/premerge-monolithic-linux/build/tools/mlir/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/mlir/include -I/build/buildbot/premerge-monolithic-linux/build/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include -gmlt -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 -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/mlir/lib/Dialect/Tensor/Transforms/CMakeFiles/obj.MLIRTensorTransforms.dir/BufferizableOpInterfaceImpl.cpp.o -MF tools/mlir/lib/Dialect/Tensor/Transforms/CMakeFiles/obj.MLIRTensorTransforms.dir/BufferizableOpInterfaceImpl.cpp.o.d -o tools/mlir/lib/Dialect/Tensor/Transforms/CMakeFiles/obj.MLIRTensorTransforms.dir/BufferizableOpInterfaceImpl.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp:13:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h:748:
/build/buildbot/premerge-monolithic-linux/build/tools/mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h.inc:1098:99: error: too many arguments to function call, expected 3, have 4
  return static_cast<const ConcreteOp *>(impl)->bufferize(tablegen_opaque_val, rewriter, options, state);
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                         ^~~~~
/build/buildbot/premerge-monolithic-linux/build/tools/mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h.inc:74:248: note: in instantiation of member function 'mlir::bufferization::detail::BufferizableOpInterfaceInterfaceTraits::FallbackModel<mlir::tensor::(anonymous namespace)::ConcatOpInterface>::bufferize' requested here
    FallbackModel() : Concept{bufferizesToAllocation, bufferizesToMemoryRead, bufferizesToMemoryWrite, bufferizesToElementwiseAccess, resultBufferizesToMemoryWrite, mustBufferizeInPlace, getAliasingValues, getAliasingOpOperands, resolveConflicts, bufferize, isWritable, isNotConflicting, verifyAnalysis, getBufferType, isRepetitiveRegion, isParallelRegion, hasTensorSemantics, supportsUnstructuredControlFlow} {}
                                                                                                                                                                                                                                                       ^
/build/buildbot/premerge-monolithic-linux/build/tools/mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h.inc:96:9: note: in instantiation of member function 'mlir::bufferization::detail::BufferizableOpInterfaceInterfaceTraits::FallbackModel<mlir::tensor::(anonymous namespace)::ConcatOpInterface>::FallbackModel' requested here
  class ExternalModel : public FallbackModel<ConcreteModel> {
        ^
/build/buildbot/premerge-monolithic-linux/llvm-project/mlir/include/mlir/Support/InterfaceSupport.h:216:6: note: in instantiation of function template specialization 'mlir::detail::InterfaceMap::insertModel<mlir::tensor::(anonymous namespace)::ConcatOpInterface>' requested here
    (insertModel<IfaceModels>(), ...);
     ^
/build/buildbot/premerge-monolithic-linux/llvm-project/mlir/include/mlir/IR/OperationSupport.h:357:34: note: in instantiation of function template specialization 'mlir::detail::InterfaceMap::insertModels<mlir::tensor::(anonymous namespace)::ConcatOpInterface>' requested here
    getImpl()->getInterfaceMap().insertModels<Models...>();
                                 ^
/build/buildbot/premerge-monolithic-linux/llvm-project/mlir/include/mlir/IR/OpDefinition.h:1747:11: note: in instantiation of function template specialization 'mlir::OperationName::attachInterface<mlir::tensor::(anonymous namespace)::ConcatOpInterface>' requested here
    info->attachInterface<Models...>();
          ^
/build/buildbot/premerge-monolithic-linux/llvm-project/mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp:1204:15: note: in instantiation of function template specialization 'mlir::Op<mlir::tensor::ConcatOp, mlir::OpTrait::ZeroRegions, mlir::OpTrait::OneResult, mlir::OpTrait::OneTypedResult<mlir::RankedTensorType>::Impl, mlir::OpTrait::ZeroSuccessors, mlir::OpTrait::VariadicOperands, mlir::OpTrait::OpInvariants, mlir::BytecodeOpInterface::Trait, mlir::ConditionallySpeculatable::Trait, mlir::OpTrait::AlwaysSpeculatableImplTrait, mlir::MemoryEffectOpInterface::Trait, mlir::OpAsmOpInterface::Trait, mlir::ReifyRankedShapedTypeOpInterface::Trait>::attachInterface<mlir::tensor::(anonymous namespace)::ConcatOpInterface>' requested here
    ConcatOp::attachInterface<ConcatOpInterface>(*ctx);
              ^
/build/buildbot/premerge-monolithic-linux/llvm-project/mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp:1091:17: note: 'bufferize' declared here
  LogicalResult bufferize(Operation *op, RewriterBase &rewriter,
                ^
1 error generated.
37.891 [4513/57/175] Linking CXX executable bin/apinotes-test
37.948 [4513/56/176] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
38.011 [4513/55/177] Building CXX object tools/mlir/lib/Dialect/Linalg/Transforms/CMakeFiles/obj.MLIRLinalgTransforms.dir/Transforms.cpp.o
38.070 [4513/54/178] Linking CXX executable bin/diagtool
38.354 [4513/53/179] Linking CXX executable bin/clang-diff
39.553 [4513/52/180] Building CXX object tools/mlir/lib/Dialect/Linalg/Transforms/CMakeFiles/obj.MLIRLinalgTransforms.dir/Vectorization.cpp.o
39.589 [4513/51/181] Linking CXX executable bin/clang-21
40.548 [4513/50/182] Building CXX object tools/mlir/test/lib/Dialect/Linalg/CMakeFiles/MLIRLinalgTestPasses.dir/TestLinalgDropUnitDims.cpp.o
40.613 [4513/49/183] Building CXX object tools/mlir/test/lib/Dialect/Bufferization/CMakeFiles/MLIRBufferizationTestPasses.dir/TestTensorLikeAndBufferLike.cpp.o
40.669 [4513/48/184] Building CXX object tools/mlir/test/lib/Dialect/Linalg/CMakeFiles/MLIRLinalgTestPasses.dir/TestDataLayoutPropagation.cpp.o

```

</details>

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


More information about the Mlir-commits mailing list