Skip to content

Commit

Permalink
filecheck test
Browse files Browse the repository at this point in the history
  • Loading branch information
jorendumoulin committed Nov 29, 2023
1 parent 5d2f82a commit 6a86bd1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/filecheck/transforms/copy_to_dma.mlir
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// RUN: ./compiler/snax-opt %s -p snax-copy-to-dma --print-op-generic | filecheck %s

"builtin.module"() ({
"func.func"() <{"sym_name" = "simple_mult", "function_type" = (memref<?xi32>, memref<?xi32>) -> (), "sym_visibility" = "public"}> ({
^0(%arg0 : memref<?xi32>, %arg1 : memref<?xi32>):
"memref.copy"(%arg0, %arg1) : (memref<?xi32>, memref<?xi32>) -> ()
"func.return"() : () -> ()
}) : () -> ()
}) : () -> ()

//CHECK: "builtin.module"() ({
//CHECK-NEXT: "func.func"() <{"sym_name" = "simple_mult", "function_type" = (memref<?xi32>, memref<?xi32>) -> (), "sym_visibility" = "public"}> ({
//CHECK-NEXT: ^0(%arg0 : memref<?xi32>, %arg1 : memref<?xi32>):
//CHECK-NEXT: "func.call"(%arg0, %arg1) <{"callee" = @snax_dma_1d_transfer}> : (memref<?xi32>, memref<?xi32>) -> ()
//CHECK-NEXT: "func.return"() : () -> ()
//CHECK-NEXT: }) : () -> ()
//CHECK-NEXT: "func.func"() <{"sym_name" = "snax_dma_1d_transfer", "function_type" = (memref<?xi32>, memref<?xi32>) -> (), "sym_visibility" = "private"}> ({
//CHECK-NEXT: }) : () -> ()
//CHECK-NEXT: }) : () -> ()

0 comments on commit 6a86bd1

Please sign in to comment.