mlir-hlo/tests
Ehsan Toosi d599485e06 PR #43069: [hlo] Unbreak hlo-legalize-to-lhlo test
Imported from GitHub PR https://github.com/tensorflow/tensorflow/pull/43069

The legalization of mlhlo.ReturnOp to lhlo.TerminatorOp by using BufferAssignmentReturnOpConverter fails since the Memref typed results (or the Memref typed operands of Return operation) are set to stay as results after legalization but lhlo.TerminatorOp doesn't accept any operands. Therefore, BufferAssignmentReturnOpConverter must be replaced with a manual conversion that removes all operands of mlhlo.ReturnOp and inserts copy operations in their places.
Copybara import of the project:

--
8be0435b0147263c3872bedec58fd215f784b450 by Ehsan Toosi <ehsan.nadjaran_toosi@dfki.de>:

[hlo] Unbreak hlo-legalize-to-lhlo test

COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/tensorflow/pull/43069 from dfki-ehna:fix_hlo_legalize_to_lhlo_test 8be0435b0147263c3872bedec58fd215f784b450
PiperOrigin-RevId: 330907602
2020-09-10 04:09:03 -07:00
..
end2end Move hlo end to end tests to the hlo directory tree. 2020-08-03 19:28:37 -07:00
CMakeLists.txt Add CMake files and lit configurations, enough for `ninja check-mlir-hlo` to pass on all the tests 2020-08-07 22:14:34 -07:00
canonicalize.mlir Bitwise and/or/xor folders 2020-09-08 16:27:13 -07:00
chlo_infer_shape_type_methods.mlir [MLIR][XLA] Allow for choice of safe/unsafe variant in broadcast utils 2020-08-07 22:16:11 -07:00
chlo_legalize_to_hlo_broadcasts.mlir [MLIR][XLA] Allow for choice of safe/unsafe variant in broadcast utils 2020-08-07 22:16:11 -07:00
concatenate.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
convert.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
hlo-legalize-gather-to-torch-index-select.mlir Add a transform for Gathers to torch_index_select. 2020-07-30 22:34:32 +00:00
hlo-legalize-to-lhlo-unranked.mlir [MLIR][LHLO] Convert mhlo.dynamic_reshape -> lhlo.reshape_memref_cast. 2020-07-30 22:33:02 +00:00
hlo-legalize-to-lhlo.mlir PR #43069: [hlo] Unbreak hlo-legalize-to-lhlo test 2020-09-10 04:09:03 -07:00
hlo-legalize-to-linalg.mlir Enhance lowering reshape op to Linalg. 2020-08-21 23:27:34 -07:00
inlining.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
legalize-control-flow.mlir Cleanup build rule names in compiler/mlir/hlo to remove the redundant/obsolete xla_ prefix 2020-07-30 22:33:29 +00:00
legalize-to-std.mlir Lowering for mhlo.ceil to std.ceil 2020-08-12 16:15:35 -07:00
legalize_tanh_to_approximation.mlir Cleanup build rule names in compiler/mlir/hlo to remove the redundant/obsolete xla_ prefix 2020-07-30 22:33:29 +00:00
legalize_to_scf.mlir [mhlo] Add legalize to SCF pass 2020-08-28 15:11:58 -07:00
lhlo-copy-removal.mlir Fix mhlo to lmhlo conversion for ReduceOp. 2020-07-30 22:34:19 +00:00
lhlo-fuse-linalg.mlir Move HLO tests to `third_party/tensorflow/compiler/mlir/hlo/` 2020-07-30 22:32:45 +00:00
lhlo-legalize-select-and-scatter.mlir Cleanup build rule names in compiler/mlir/hlo to remove the redundant/obsolete xla_ prefix 2020-07-30 22:33:29 +00:00
lhlo-legalize-to-affine.mlir Rename xla_lhlo dialect into lmhlo 2020-07-30 22:33:11 +00:00
lhlo-legalize-to-gpu.mlir Rename xla_lhlo dialect into lmhlo 2020-07-30 22:33:11 +00:00
lhlo-legalize-to-linalg.mlir Add support for legalizing lmhlo.transpose to linalg.generic 2020-09-04 15:37:42 -07:00
lhlo-legalize-to-llvm.mlir [MLIR] Remove Affine->STD and SCF->STD patterns from lhlo->llvm pass. 2020-08-07 22:15:24 -07:00
lhlo-legalize-to-parallel-loops.mlir Allow running tests with FILECHECK_OPTS=-enable-var-scope 2020-08-03 19:27:38 -07:00
lhlo_ops.mlir Rename xla_lhlo dialect into lmhlo 2020-07-30 22:33:11 +00:00
lit.cfg.py Add CMake files and lit configurations, enough for `ninja check-mlir-hlo` to pass on all the tests 2020-08-07 22:14:34 -07:00
lit.site.cfg.py.in Add license header to lit.site.cfg.py.in 2020-08-07 22:22:24 -07:00
lower-complex.mlir Modified HLOAbsOp lowering for differing types. 2020-08-03 19:27:12 -07:00
lower-general-dot.mlir Cleanup build rule names in compiler/mlir/hlo to remove the redundant/obsolete xla_ prefix 2020-07-30 22:33:29 +00:00
materialize-broadcasts.mlir Cleanup build rule names in compiler/mlir/hlo to remove the redundant/obsolete xla_ prefix 2020-07-30 22:33:29 +00:00
mhlo-fusion.mlir Cleanup build rule names in compiler/mlir/hlo to remove the redundant/obsolete xla_ prefix 2020-07-30 22:33:29 +00:00
mhlo-transform-unranked.mlir Integrate LLVM at llvm/llvm-project@9c5e25a696 2020-08-17 18:22:29 -07:00
ops.mlir Fix return type of replica-id to unsigned int 32 tensor. 2020-09-03 16:08:38 -07:00
optimize-hlo.mlir Add an optimization that converts some Gathers to Slices. 2020-07-30 22:34:10 +00:00
reduce.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
reshape.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
reverse.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
sink-constants-to-control-flow.mlir Sink standard dialect constants in sink_constants_to_control_flow pass 2020-08-03 19:30:29 -07:00
transpose.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
tuple.mlir Rename `xla_hlo` dialect to `mhlo` 2020-07-30 22:32:50 +00:00
unfuse_batch_norm.mlir Allow running tests with FILECHECK_OPTS=-enable-var-scope 2020-08-03 19:27:38 -07:00