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?