River Riddle
1982afb145
Unify the 'constantFold' and 'fold' hooks on an operation into just 'fold'. This new unified fold hook will take constant attributes as operands, and may return an existing 'Value *' or a constant 'Attribute' when folding. This removes the awkward situation where a simple canonicalization like "sub(x,x)->0" had to be written as a canonicalization pattern as opposed to a fold.
...
--
PiperOrigin-RevId: 248582024
2019-05-20 13:44:24 -07:00
Nicolas Vasilache
56c7a957bf
Parsing support for Range, View and Slice operations
...
This CL implements the previously unsupported parsing for Range, View and Slice operations.
A pass is introduced to lower to the LLVM.
Tests are moved out of C++ land and into mlir/test/Examples.
This allows better fitting within standard developer workflows.
--
PiperOrigin-RevId: 245796600
2019-05-06 08:20:55 -07:00
Amit Sabne
7905da656e
Loop invariant code motion.
...
--
PiperOrigin-RevId: 244043679
2019-04-18 11:49:31 -07:00
Mehdi Amini
7a640e65e9
Fix CMake build: reflect that a new file Utils/ConstantFoldUtils.cpp was added
...
--
PiperOrigin-RevId: 242123122
2019-04-05 07:43:50 -07:00
Mehdi Amini
01e8ec94c3
Fix CMake build: account for renamed files and add missing include on MacOS
...
--
PiperOrigin-RevId: 242101364
2019-04-05 07:43:23 -07:00
Jacques Pienaar
1273af232c
Add build files and update README.
...
* Add initial version of build files;
* Update README with instructions to download and build MLIR from github;
--
PiperOrigin-RevId: 241102092
2019-03-30 11:23:22 -07:00