brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · b9a93af Raw
22 lines · plain
1// RUN: mlir-transform-opt %s | FileCheck %s2// RUN: mlir-transform-opt %s --transform=%s | FileCheck %s3// RUN: mlir-transform-opt %s --transform=%p/external-decl.mlir --verify-diagnostics4// RUN: mlir-transform-opt %s --transform=%p/external-def.mlir --transform-entry-point=external_def | FileCheck %s --check-prefix=EXTERNAL5// RUN: mlir-transform-opt %s --transform=%p/external-decl.mlir --transform-library=%p/external-def.mlir | FileCheck %s --check-prefix=EXTERNAL6// RUN: mlir-transform-opt %s --transform=%p/syntax-error.mlir --verify-diagnostics7 8// CHECK: IR printer: in self-contained9// EXTERNAL: IR printer: external_def10 11// The first occurrence comes from the print operation and the second is the12// roundtrip output. However, we shouldn't have the symbol duplicated because13// of library merging.14// CHECK-COUNT-2: @__transform_main15// CHECK-NOT: @__transform_main16module attributes {transform.with_named_sequence} {17  transform.named_sequence private @__transform_main(%root: !transform.any_op) {18    transform.print %root { name = "in self-contained" } : !transform.any_op19    transform.yield20  }21}22