Files
clang-p2996/mlir/test/Pass/pipeline-invalid.mlir
Matthias Springer 213917be82 [mlir][bufferization] Remove buffer-deallocation pass (#126366)
The `-buffer-deallocation` pass is not compatible with One-Shot
Bufferize and has been replaced with the Ownership-based Buffer
Deallocation pass about 1.5 years ago. To clean up the code base, this
commit removes the deprecated `buffer-deallocation` pass. All uses of
this deprecated pass within MLIR have already been migrated.

Note for LLVM integration: If you depend on this pass, migrate to the
Ownership-based Buffer Deallocation pass or copy the pass to your
codebase. For details, see
https://discourse.llvm.org/t/psa-bufferization-new-buffer-deallocation-pipeline/73375.
2025-02-13 09:49:16 +01:00

20 lines
600 B
MLIR

// RUN: mlir-opt --no-implicit-module \
// RUN: --pass-pipeline='any(test-function-pass)' --verify-diagnostics \
// RUN: --split-input-file %s
// Note: "test-function-pass" is a function pass. Any other function pass could
// be used for this test.
// expected-error@below {{trying to schedule a pass on an operation not marked as 'IsolatedFromAbove'}}
arith.constant 0
// -----
// expected-error@below {{trying to schedule a pass on an unregistered operation}}
"test.op"() : () -> ()
// -----
// expected-error@below {{trying to schedule a pass on an unsupported operation}}
module {}