brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 2b31453 Raw
49 lines · plain
1// Check that (1) the default input split marker used if no custom marker is2// specified and (2) the output file is merged using the default marker.3// RUN: mlir-pdll %s -split-input-file \4// RUN: | FileCheck -check-prefix=CHECK-DEFAULT %s5 6// Check that the custom (3) input and (output) split markers are used if7// provided.8// RUN: mlir-pdll %s \9// RUN:   -split-input-file="// ""=====" -output-split-marker "// #####" \10// RUN: | FileCheck -check-prefix=CHECK-CUSTOM %s11 12// Check that (5) the input is not split if `-split-input-file` is not given.13// RUN: mlir-pdll %s \14// RUN: | FileCheck -check-prefix=CHECK-NOSPLIT %s15 16// CHECK-DEFAULT:      Module17// CHECK-DEFAULT-NEXT: PatternDecl18// CHECK-DEFAULT-NOT:  PatternDecl19// CHECK-DEFAULT:      //{{ }}-----20// CHECK-DEFAULT-NEXT: Module21// CHECK-DEFAULT-NEXT: PatternDecl22// CHECK-DEFAULT:      PatternDecl23 24// CHECK-CUSTOM:      Module25// CHECK-CUSTOM-NEXT: PatternDecl26// CHECK-CUSTOM:      PatternDecl27// CHECK-CUSTOM:      // #####28// CHECK-CUSTOM-NEXT: Module29// CHECK-CUSTOM-NEXT: PatternDecl30// CHECK-CUSTOM-NOT:  PatternDecl31 32// CHECK-NOSPLIT:      Module33// CHECK-NOSPLIT-NEXT: PatternDecl34// CHECK-NOSPLIT-NOT:  Module35// CHECK-NOSPLIT:      PatternDecl36// CHECK-NOSPLIT-NOT:  Module37// CHECK-NOSPLIT:      PatternDecl38// CHECK-NOSPLIT-NOT:  Module39 40Pattern => erase op<test.op>;41 42// -----43 44Pattern => erase op<test.op2>;45 46// =====47 48Pattern => erase op<test.op3>;49