[WIP] Sketching IR and parsing support for affine maps, affine expressions

Run test case:

$ mlir-opt test/IR/parser-affine-map.mlir
test/IR/parser-affine-map.mlir:3:30: error: expect '(' at start of map range
#hello_world2 (i, j) [s0] -> i+s0, j)
                             ^

PiperOrigin-RevId: 202736856
This commit is contained in:
Uday Bondhugula
2018-06-29 18:09:29 -07:00
committed by jpienaar
parent 509da7907e
commit fdf7bc4e25
13 changed files with 616 additions and 40 deletions

View File

@@ -0,0 +1,7 @@
#hello_world0 = (i, j) [s0] -> (i, j)
#hello_world1 = (i, j) -> (i, j)
#hello_world2 = () -> (0)
#hello_world3 = (i, j) [s0] -> (i + s0, j)
#hello_world4 = (i, j) [s0] -> (i + s0, j + 5)
#hello_world5 (i, j) [s0] -> i + s0, j)
#hello_world5 = (i, j) [s0] -> i + s0, j)