diff --git a/stencil1d.mlir b/stencil1d.mlir deleted file mode 100644 index db006f4c53..0000000000 --- a/stencil1d.mlir +++ /dev/null @@ -1,19 +0,0 @@ -func.func @stencil(%ibuff : !stencil.field<[0,128]xf64>, %obuff : !stencil.field<[0,128]xf64>) { - %source = "stencil.load"(%ibuff) : (!stencil.field<[0,128]xf64>) - -> !stencil.temp - %out = "stencil.apply"(%source) ({ - ^bb(%arg : !stencil.temp): - %l = "stencil.access"(%arg) {"offset" = !stencil.index<-1>} : (!stencil.temp) -> f64 - %c = "stencil.access"(%arg) {"offset" = !stencil.index<0>} : (!stencil.temp) -> f64 - %r = "stencil.access"(%arg) {"offset" = !stencil.index<1>} : (!stencil.temp) -> f64 - %2 = arith.constant -2.0 : f64 - %c2 = arith.mulf %c, %2 : f64 - %s1 = arith.addf %l, %r : f64 - %v = arith.addf %s1, %c2 : f64 - // %v = %l + %r - 2.0 * %c - "stencil.return"(%v) : (f64) -> () - }) : (!stencil.temp) -> !stencil.temp - - "stencil.store"(%out, %obuff) {"lb" = #stencil.index<1>, "ub" = #stencil.index<127>} : (!stencil.temp, !stencil.field<[0,128]xf64>) -> () - func.return -} \ No newline at end of file