brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 99301ea Raw
45 lines · plain
1// RUN: mlir-opt %s --pass-pipeline="builtin.module(transform-interpreter{\2// RUN:         debug-payload-root-tag=payload \3// RUN:         entry-point=transform})" \4// RUN:   --allow-unregistered-dialect --split-input-file --verify-diagnostics5 6// expected-error @below {{could not find the operation with transform.target_tag="payload" attribute}}7module attributes {transform.with_named_sequence} {8  transform.named_sequence @transform(%arg0: !transform.any_op) {9    transform.yield10  }11}12 13// -----14 15// expected-error @below {{could not find a nested named sequence with name: transform}}16module attributes {transform.with_named_sequence} {17  transform.named_sequence @not_transform(%arg0: !transform.any_op) {18    transform.yield19  }20 21  module attributes {transform.target_tag="payload"} {}22}23 24// -----25 26module attributes {transform.with_named_sequence} {27  transform.named_sequence @transform(%arg0: !transform.any_op) {28    transform.debug.emit_remark_at %arg0, "payload" : !transform.any_op29    transform.yield30  }31 32  // This will not be executed.33  transform.named_sequence @__transform_main(%arg0: !transform.any_op) {34    transform.debug.emit_remark_at %arg0, "some other text that is not printed" : !transform.any_op35    transform.yield36  }37 38  module {39    module {}40    // expected-remark @below {{payload}}41    module attributes {transform.target_tag="payload"} {}42    module {}43  }44}45