Add option to free up visit state for the DFS HLO visitor
Add option to free up visit state for the DFS HLO visitor

The visit state can be big for large modules and if we keep the
visitor around after use then we often want to deallocate it to
save memory.

PiperOrigin-RevId: 263027955

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