MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / apply

Method apply

src/simplify_reshapes.cpp:1784–1811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1782} // namespace
1783
1784void simplify_reshapes::apply(module& m) const
1785{
1786 match::find_matches(m, find_gather_scalar{});
1787 dead_code_elimination{}.apply(m);
1788 if(enable_gather_rewrite)
1789 match::find_matches(m, find_gather{});
1790 m.repeat_while_changes(depth, [&] {
1791 match::find_matches(m,
1792 find_nop_reshapes{},
1793 find_flatten{},
1794 find_reshape_cont{},
1795 find_slice_shape_transforms{},
1796 find_nested_shape_transforms{},
1797 find_concat_slice{},
1798 find_concat_transpose{},
1799 find_concat_reshape{},
1800 find_concat_multibroadcasts{},
1801 find_nested_slice{},
1802 find_nested_concat{},
1803 find_transpose_slice{},
1804 find_slice_transpose{},
1805 find_unary_shape_transforms{},
1806 find_reshape_dot{},
1807 find_mul_add_shape_op_dot{},
1808 find_op_shape_transform_op{.enable = enable_op_shape_transform_op});
1809 dead_code_elimination{}.apply(m);
1810 });
1811}
1812
1813} // namespace MIGRAPHX_INLINE_NS
1814} // namespace migraphx

Callers

nothing calls this directly

Calls 2

find_matchesClass · 0.85
repeat_while_changesMethod · 0.80

Tested by

no test coverage detected