how to get LoopInfo from a FunctionPass?

I want to analysis loops in a function, so I create a class inherited from FunctionPass, then how can I get the LoopInfo?
thank you very much!