summaryrefslogtreecommitdiffstats
path: root/mlir/test/Examples/Toy/Ch3
Commit message (Collapse)AuthorAgeFilesLines
* Fixed typo in Toy tutorial (second var e -> var f)Aart Bik2019-11-271-2/+2
| | | | PiperOrigin-RevId: 282810649
* NFC: Fix remaining usages of MulOp as matrix multiplication.River Riddle2019-10-212-21/+23
| | | | | | MulOp now represents an element-wise multiplication instead of a matrix multiplication. PiperOrigin-RevId: 275886774
* NFC: Fix typo : Retur -> ReturnRiver Riddle2019-10-201-1/+1
| | | | PiperOrigin-RevId: 275745931
* Update comments in ast.toyJacques Pienaar2019-10-161-28/+29
| | | | PiperOrigin-RevId: 275084969
* Update Chapter 3 to demonstrate pattern match and rewrite optimizationsSana Damani2019-10-153-23/+20
| | | | | | | | | This is using Table-driven Declarative Rewrite Rules (DRR), the previous version of the tutorial only showed the C++ patterns. Closes tensorflow/mlir#187 PiperOrigin-RevId: 274852321
* Change the attribute dictionary syntax to separate name and value with '='.River Riddle2019-06-252-6/+6
| | | | | | | | | | | The current syntax separates the name and value with ':', but ':' is already overloaded by several other things(e.g. trailing types). This makes the syntax difficult to parse in some situtations: Old: "foo: 10 : i32" New: "foo = 10 : i32" PiperOrigin-RevId: 255097928
* Modify the syntax of the the ElementsAttrs to print the type as a colon type.River Riddle2019-06-252-3/+3
| | | | | | | | | This is the standard syntax for types on operations, and is also already used by IntegerAttr and FloatAttr. Example: dense<5> : tensor<i32> dense<[3]> : tensor<1xi32> PiperOrigin-RevId: 255069157
* Update the Parser to support parsing/printing DenseElementAttrs with a splat ↵River Riddle2019-06-191-1/+1
| | | | | | | | | value. The syntax for this is the same as 0-D tensors: dense<tensor<100x100x100xi32>, 10> dense<tensor<1x1x1xi64>, -5> PiperOrigin-RevId: 252907880
* Remove the Toy/* file path from the location check lines. This assumes a ↵River Riddle2019-06-011-27/+27
| | | | | | | | specific file path format that breaks on MSVC. -- PiperOrigin-RevId: 250549223
* Change the asmprinter to use pretty syntax for dialect types when it can,Chris Lattner2019-04-073-15/+15
| | | | | | | | | | | | making the IR dumps much nicer. This is part 2/3 of the path to making dialect types more nice. Part 3/3 will slightly generalize the set of characters allowed in pretty types and make it more principled. -- PiperOrigin-RevId: 242249955
* NFC: Fix a few typos in the tutorials and one in the comment of ↵River Riddle2019-04-051-1/+1
| | | | | | | | FunctionAttr::dropFunctionReference. -- PiperOrigin-RevId: 242050934
* Fix Toy Ch3 testing with CMakeMehdi Amini2019-04-031-0/+2
| | | | | | | | | Mainly a missing dependency caused the tests to pass if one already built the repo, but not from a clean (or incremental) build. -- PiperOrigin-RevId: 241852313
* Chapter 3 for Toy tutorial: introduction of a dialectMehdi Amini2019-04-034-0/+128
-- PiperOrigin-RevId: 241849162
OpenPOWER on IntegriCloud