mlir-hlo/lib/Dialect/mhlo/transforms
Benjamin Kramer 59fa7c0ef7 [MHLO:linalg] Lower all dynamic broadcasts of static shapes to linalg.generic
We only need the memref_reinterpret_cast if we don't know whether a dimension
gets expanded or not. With static shapes we know that a dimension can only be
expanded if it's a static 1, so lower it in the same way we lower fully
static broadcasts.

PiperOrigin-RevId: 363859181
2021-03-19 03:52:02 -07:00
..
CMakeLists.txt [MHLO] Add pass to move up dynamic broadcasts for fusion 2021-03-10 06:21:57 -08:00
chlo_legalize_to_hlo.cc [MLIR][KernelGen] Fix zeta lowering at poles 2021-03-10 01:09:10 -08:00
chlo_legalize_to_hlo_pass.cc Legalize MinimumBroadcastShapes op. 2021-03-02 06:39:01 -08:00
chlo_legalize_to_hlo_patterns.td [MLIR][CHLO] Add `is_inf`, `is_pos_inf`, and `is_neg_inf` to CHLO dialect 2021-01-27 09:00:56 -08:00
hlo_legalize_to_lhlo.cc Integrate LLVM at llvm/llvm-project@678241795c 2021-03-16 13:33:00 -07:00
legalize_control_flow.cc Fix MLIR include paths. 2020-12-17 00:56:04 -08:00
legalize_gather_to_torch_index_select.cc Integrate LLVM at llvm/llvm-project@d1978fa4bf 2021-02-05 07:42:06 -08:00
legalize_to_linalg.cc [MHLO:linalg] Lower all dynamic broadcasts of static shapes to linalg.generic 2021-03-19 03:52:02 -07:00
legalize_to_standard.cc Integrate LLVM at llvm/llvm-project@d1978fa4bf 2021-02-05 07:42:06 -08:00
legalize_to_standard_patterns.td Lowering for mhlo.ceil to std.ceil 2020-08-12 16:15:35 -07:00
legalize_trigonometric_to_approximation.cc [MLIR][MHLO] Approximate `tf.Tanh` as constant +/-1 for small/large values 2021-03-16 10:14:30 -07:00
lhlo_fuse_linalg.cc Integrate LLVM at llvm/llvm-project@678241795c 2021-03-16 13:33:00 -07:00
lhlo_legalize_to_affine.cc Integrate LLVM at llvm/llvm-project@d1978fa4bf 2021-02-05 07:42:06 -08:00
lhlo_legalize_to_gpu.cc Integrate LLVM at llvm/llvm-project@678241795c 2021-03-16 13:33:00 -07:00
lhlo_legalize_to_parallel_loops.cc Integrate LLVM at llvm/llvm-project@678241795c 2021-03-16 13:33:00 -07:00
lower_complex.cc Integrate LLVM at llvm/llvm-project@d1978fa4bf 2021-02-05 07:42:06 -08:00
lower_complex_patterns.td Removed Op(Complex, Real) lowering to address complex type inference issue 2020-11-06 15:24:23 -08:00
lower_general_dot.cc Build fix for missing precision_config. 2021-03-10 11:10:51 -08:00
materialize_broadcasts.cc More cleanup in mlir-hlo to prepare for the standalone build 2020-08-03 19:28:00 -07:00
materialize_broadcasts_pass.cc Integrate LLVM at llvm/llvm-project@0fc1aa22ee 2020-10-27 06:56:16 -07:00
mhlo_control_flow_to_scf.cc Fix MLIR include paths. 2020-12-17 00:56:04 -08:00
mhlo_fusion.cc Integrate LLVM at llvm/llvm-project@3f3f88fb95 2021-03-09 02:19:24 -08:00
move_up_dynamic_broadcasts_for_fusion.cc [MLIR][MHLO] Allow recursion in the shape_of mover 2021-03-11 02:52:21 -08:00
optimize_mhlo.cc More cleanup in mlir-hlo to prepare for the standalone build 2020-08-03 19:28:00 -07:00
optimize_mhlo_pass.cc Integrate LLVM at llvm/llvm-project@d1978fa4bf 2021-02-05 07:42:06 -08:00
sink_constants_to_control_flow.cc Enable fallback legalization for MaxPoolGradGrad and MaxPool3DGradGrad ops 2020-11-13 13:49:05 -08:00
test_infer_shaped_type_pass.cc Integrate LLVM at llvm/llvm-project@d1978fa4bf 2021-02-05 07:42:06 -08:00
transform_unranked_hlo.cc [MLIR][KernelGen] Add `tf.Polygamma` kernel 2021-03-10 02:22:01 -08:00
unfuse_batch_norm.cc Integrate LLVM at llvm/llvm-project@678241795c 2021-03-16 13:33:00 -07:00
unfuse_batch_norm_pass.cc Integrate LLVM at llvm/llvm-project@d1978fa4bf 2021-02-05 07:42:06 -08:00