torch-mlir/test/npcomp-run-mlir
Sean Silva d8675f8ad2 [RefE2E] Add support for matmul.
I'm pretty happy with how this turned out. It looks pretty much like it
should -- one change at each layer. This particular op bottoms out on
linalg which takes care of the rest.

- Add tcf.matmul
- Add tcp.matmul
- Add TCF->TCP lowering
- Add tcp.matmul shape transfer function (BypassShapes.cpp)
- Add tcp.matmul -> linalg.matmul lowering (LowerShapedResultsToMemref.cpp)
- Add support to LowerShapeConstraints for lowering the new
shape.cstr_require

This matmul op is pretty limited in its capabilities. There is no
batching and no multidimensional contraction. Certainly more design work
will be needed to find the right abstractions that aren't too general
but also help to canonicalize many cases from frontends. This is mainly
to show that adding a new op needn't be very "scary" once we have the
e2e infra in place.

Also,
- this clears out some exploratory cruft from the TCF dialect now that
this is starting to become real.
2020-09-18 11:31:01 -07:00
..
basic.mlir Make input file to npcomp-run-mlir be positional. 2020-07-13 16:02:19 -07:00
broadcast.mlir Make input file to npcomp-run-mlir be positional. 2020-07-13 16:02:19 -07:00
constant-add-scalar.mlir Make input file to npcomp-run-mlir be positional. 2020-07-13 16:02:19 -07:00
constant-add.mlir Make input file to npcomp-run-mlir be positional. 2020-07-13 16:02:19 -07:00
constant.mlir Make input file to npcomp-run-mlir be positional. 2020-07-13 16:02:19 -07:00
identity.mlir Make input file to npcomp-run-mlir be positional. 2020-07-13 16:02:19 -07:00
invalid-broadcast.mlir Totally rework RefE2E tensor to memref flow. (#42) 2020-09-16 17:31:40 -07:00
invalid-matmul.mlir [RefE2E] Add support for matmul. 2020-09-18 11:31:01 -07:00
invalid-num-inputs.mlir Make input file to npcomp-run-mlir be positional. 2020-07-13 16:02:19 -07:00
matmul.mlir [RefE2E] Add support for matmul. 2020-09-18 11:31:01 -07:00
mixed-rank.mlir Make input file to npcomp-run-mlir be positional. 2020-07-13 16:02:19 -07:00
multi-output.mlir Totally rework RefE2E tensor to memref flow. (#42) 2020-09-16 17:31:40 -07:00
multiple-ops.mlir Make input file to npcomp-run-mlir be positional. 2020-07-13 16:02:19 -07:00
scalar.mlir Rework reference shape lowering based on upstream shape dialect changes. 2020-08-03 13:43:49 -07:00