Stephan Herhut
c44e08351d
Fix mhlo to lmhlo conversion for ReduceOp.
...
The existing conversion no longer worked and was not save to undo. Furthermore, the pattern for mhlo.return had been removed.
Also adds some tests to ensure this does not degrade again.
PiperOrigin-RevId: 321542071
2020-07-30 22:34:19 +00:00
Mehdi Amini
a575636862
Rename XlaHloDialect class into MhloDialect following the recent dialect namespace renaming
...
PiperOrigin-RevId: 320213526
2020-07-30 22:33:20 +00:00
Mehdi Amini
7c4a5d62b5
Rename xla_lhlo dialect into lmhlo
...
Following on the plan of isolating the compiler/mlir/hlo directory.
Another xla_lhlo dialect will be created under compiler/mlir/xla/ later.
PiperOrigin-RevId: 320210326
2020-07-30 22:33:11 +00:00
Alexander Belyaev
b076e018a8
[MLIR][LHLO] Legalize CallOp that call funcs with tensor args/results.
...
PiperOrigin-RevId: 320172723
2020-07-30 22:33:07 +00:00
Alexander Belyaev
e8cfdee592
[MLIR][LHLO] Convert mhlo.dynamic_reshape -> lhlo.reshape_memref_cast.
...
PiperOrigin-RevId: 320149593
2020-07-30 22:33:02 +00:00
Alexander Belyaev
8692fde3f9
[MLIR] Convert FuncOp signature with unranked types in HLO->LHLO conversion.
...
PiperOrigin-RevId: 320146856
2020-07-30 22:32:58 +00:00
Mehdi Amini
8900222fed
Rename `xla_hlo` dialect to `mhlo`
...
This is part of the current refactoring of the HLO related dialect.
`xla_hlo` will be reintroduced in a new form later.
PiperOrigin-RevId: 319916753
2020-07-30 22:32:50 +00:00
Mehdi Amini
31dc1b21eb
Move XLA-independent transforms to the new MLIR-HLO directory
...
This is as straighforward as possible, more cleanup/rewrite to come.
PiperOrigin-RevId: 319849713
2020-07-30 22:32:40 +00:00