Start TFLite legalizer pass
Start TFLite legalizer pass

Start of TFLite legalizer pass. Currently focussed on macro expanding ops, limited to what is registered directly in a separate pass (this should instead be a general pass), no querying of what gets produced, the matching is string based instead of using the ops proper (the matching TF ops should be defined) etc. This is a step to enable prototyping. In addition to the above shortcomings, the legalizer is very verbose in this form and should instead be driven by autogenerated patterns (same is true for the op builders too). But this starts from the explicit form and extracting out commonality in follow up.

Add definition for tfl.relu for basic selection of fused relu add.

PiperOrigin-RevId: 220287087

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