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