Emit matchAndRewrite() for declarative rewrite rules
Emit matchAndRewrite() for declarative rewrite rules

Previously we are emitting separate match() and rewrite()
methods, which requires conveying a match state struct
in a unique_ptr across these two methods. Changing to
emit matchAndRewrite() simplifies the picture.

PiperOrigin-RevId: 261906804

tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,DavidNorman/tensorflow,Intel-tensorflow/tensorflow,freedomtan/tensorflow,aldian/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,annarev/tensorflow,Intel-tensorflow/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,jhseu/tensorflow,annarev/tensorflow,ppwwyyxx/tensorflow,cxxgtxy/tensorflow,gunan/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,tensorflow/tensorflow,adit-chandra/tensorflow,jhseu/tensorflow,arborh/tensorflow,adit-chandra/tensorflow,arborh/tensorflow,paolodedios/tensorflow,Intel-Corporation/tensorflow,gautam1858/tensorflow,aam-at/tensorflow,annarev/tensorflow,adit-chandra/tensorflow,jhseu/tensorflow,petewarden/tensorflow,arborh/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,Intel-tensorflow/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,adit-chandra/tensorflow,yongtang/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sarvex/tensorflow,adit-chandra/tensorflow,paolodedios/tensorflow,cxxgtxy/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,davidzchen/tensorflow,cxxgtxy/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,xzturn/tensorflow,petewarden/tensorflow,karllessard/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,DavidNorman/tensorflow,cxxgtxy/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,DavidNorman/tensorflow,freedomtan/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,ppwwyyxx/tensorflow,freedomtan/tensorflow,sarvex/tensorflow,frreiss/tensorflow-fred,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,gautam1858/tensorflow,xzturn/tensorflow,petewarden/tensorflow,renyi533/tensorflow,DavidNorman/tensorflow,yongtang/tensorflow,annarev/tensorflow,adit-chandra/tensorflow,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,Intel-Corporation/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,Intel-tensorflow/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,frreiss/tensorflow-fred,xzturn/tensorflow,frreiss/tensorflow-fred,arborh/tensorflow,arborh/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,aam-at/tensorflow,arborh/tensorflow,renyi533/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,DavidNorman/tensorflow,gunan/tensorflow,davidzchen/tensorflow,freedomtan/tensorflow,davidzchen/tensorflow,aam-at/tensorflow,petewarden/tensorflow,jhseu/tensorflow,gunan/tensorflow,ppwwyyxx/tensorflow,Intel-tensorflow/tensorflow,DavidNorman/tensorflow,renyi533/tensorflow,ppwwyyxx/tensorflow,gautam1858/tensorflow,ppwwyyxx/tensorflow,adit-chandra/tensorflow,arborh/tensorflow,DavidNorman/tensorflow,ppwwyyxx/tensorflow,jhseu/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,arborh/tensorflow,karllessard/tensorflow,aldian/tensorflow,tensorflow/tensorflow,arborh/tensorflow,paolodedios/tensorflow,sarvex/tensorflow,petewarden/tensorflow,sarvex/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,freedomtan/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,yongtang/tensorflow,arborh/tensorflow,cxxgtxy/tensorflow,gunan/tensorflow,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,arborh/tensorflow,karllessard/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sarvex/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aldian/tensorflow,gautam1858/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,ppwwyyxx/tensorflow,aldian/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,aam-at/tensorflow,sarvex/tensorflow,annarev/tensorflow,renyi533/tensorflow,DavidNorman/tensorflow,yongtang/tensorflow,aldian/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,ppwwyyxx/tensorflow,aam-at/tensorflow,gunan/tensorflow,xzturn/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,aam-at/tensorflow,yongtang/tensorflow,karllessard/tensorflow,annarev/tensorflow,adit-chandra/tensorflow,aam-at/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,renyi533/tensorflow,xzturn/tensorflow,annarev/tensorflow,adit-chandra/tensorflow,jhseu/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow,petewarden/tensorflow,gunan/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,xzturn/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,jhseu/tensorflow,ppwwyyxx/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,renyi533/tensorflow,gunan/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,annarev/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,DavidNorman/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,renyi533/tensorflow,Intel-Corporation/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,yongtang/tensorflow,jhseu/tensorflow,yongtang/tensorflow,renyi533/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,ppwwyyxx/tensorflow,adit-chandra/tensorflow,gunan/tensorflow,paolodedios/tensorflow,xzturn/tensorflow