GHEORGHE-TEOD BERCEA
dc36fd416b
[MLIR] Fix shape inference and enable ONNF to read in MLIR files. ( #367 )
...
* Fix inference. Enable ONNF to read in MLIR files.
* Fix input of onnx or mlir models.
* Address comments.
2019-12-21 00:12:27 -05:00
TUNG LEDUC
0d644fab92
[MLIR] Legalize output tensors' names ( #368 )
...
* [MLIR] legalize output tensor's name
* Update frontend_dialect_transformer.cpp
2019-12-21 00:08:02 -05:00
GHEORGHE-TEOD BERCEA
63596e723f
[MLIR] Add optimization based on TableGen pattern ( #363 )
...
* Define pattern.
* Fix file names.
* Add canonicalizer optimization based on TableGen pattern.
* Remove custom builders.
* Enable canonicalization in ONNF and ONNF-OPT.
2019-12-21 00:04:51 -05:00
Tian Jin
780e6f0aa0
[MLIR] Krnl Dialect Definition ( #357 )
...
* a complete, roud-trippable Krnl dialect operation definition
* remove old dialect definition files, edit build files
* register dialect
* check in src for onnf_opt and dimension handler types
* re-trigger jenkins
* fix build
* clarify operation semantics
* add verifier for krnl.iterate
* refactor to make things clear
* do not hard code types
* nit and add comments
* fix rebase
* update op implementation
* fix merge
* update kernel dialect definition
* more comment on how to use the builder for krnl.iterate operation
* ammend the comment
* can parse krnl.iterate
* can parse and print if bounds are not SSA values
* address comments
* better error handling
* Update CMakeLists.txt
* update comment
* reflow comments
2019-12-20 11:37:09 -05:00
GHEORGHE-TEOD BERCEA
03be41f7df
[MLIR] Add shape inference pass ( #361 )
...
* Add shape inference pass.
* Format code.
* Enable shape inference pass.
* Rename new files to use ONNF convention.
* Use include path from src folder.
* Replace guards with pragma once.
* Format variable names. Shuffle headers.
* Fix comment.
* Fix comments.
2019-12-19 20:14:07 -05:00
Doru Bercea
a6cca3cbb7
Code clean-up.
2019-12-19 19:51:01 -05:00
GHEORGHE-TEOD BERCEA
a9960f6e44
[MLIR] Add conversion to MLIR types. ( #360 )
...
* Add conversion of tensor proto types to MLIR types.
* Fix integer type conversion. Use new type conversion for ouput type.
2019-12-19 19:48:31 -05:00
Doru Bercea
626552f4a0
Remove files.
2019-12-19 19:35:19 -05:00
Tian Jin
02e1e8720f
[MLIR] Add onnf-opt Support ( #359 )
...
* support onnf-opt, register standard dialect
* use onnf native assertions
* fix build
* nit
2019-12-19 19:31:48 -05:00
GHEORGHE-TEOD BERCEA
958a2fbffc
ONNX Dialect creation and registration with MLIR ( #358 )
...
* Create and register ONNX Dialect with one Add operation.
* Fix file formatting.
* Change name from ONNX to SGIR.
* Use ONNX dialect. Change SGIR to frontend placeholder dialect.
* Add comments.
* Type clean-up.
2019-12-19 16:56:30 -05:00
Doru Bercea
b5a35c9138
Update buildbot scripts.
2019-12-19 16:28:53 -05:00
Tian Jin
f086948347
Mlir check in build script ( #356 )
...
* bug fixes
* better format
* check in build script on z13
* fix cmake syntax
2019-12-19 16:20:04 -05:00
GHEORGHE-TEOD BERCEA
45a5a8499c
Fix MLIR-enabled build. ( #354 )
...
* Add new build paths. Add Ranker or Unracked tensor types.
* Remove path to LLVM root folder, it is not needed anymore.
* Code clean-up.
* Clean-up code.
* update LLVM_PROJECT_SRC
* Update p9.sh
* Update MLIR.cmake
2019-12-19 16:16:06 -05:00
Tian Jin
00aee2e0b6
Use TableGen ( #347 )
...
* use table gen
* fix name of the dialect
* add old compilation path
* add some doc
* fix bug, sgir importer imports every op twice
* knl.visit -> knl.iterate
2019-12-19 15:18:35 -05:00
Tian Jin
cc39a92802
fix code format ( #348 )
2019-12-19 14:53:18 -05:00
Doru Bercea
e1f6ae1336
Fix name legalization.
2019-12-19 14:46:18 -05:00
TONG CHEN
50ac6e7bce
emit SGIR based on onnx model, following the toy/Ch2 example ( #345 )
...
* emit SGIR based on onnx model, following the toy/Ch2 example
* fix 1) code style 2) multiple output of a node
* Update sgir.cpp
2019-12-19 14:37:20 -05:00
Doru Bercea
63427030ca
Enable building of first commit.
2019-12-19 14:24:37 -05:00
Doru Bercea
b6a2a50dd8
Add header. Clean-up file. Add CMake file.
2019-12-18 16:45:05 -05:00
TONG CHEN
f3207be963
add MLIR: compile/link/run ( #342 )
...
* add MLIR: compile/link/run
* change LLVMPROJECT to LLVM_PROJECT and do not allow linking with system LLVM libraries
2019-12-18 15:43:35 -05:00
Gheorghe-Teodor Bercea
85bf198681
Initial commit
2019-12-18 10:18:14 -05:00