[mlir][IR] Move match
and rewrite
functions into separate class
#182307
Loading
match
and rewrite
functions into separate class
#182307