Outlining pass or a proceduralization pass

Hi all,
I’m a new LLVM user and I’m wandring to know if there is a pass to outline a delimited part of a code in a separate function and replace this portion of code by a call to this function ?

Thank you

Will this fit your needs?

http://llvm.org/docs/doxygen/html/CodeExtractor_8cpp_source.html