Using function level analysis inside a module pass

Hi everyone,

Recently i was working on a pass(designed as module pass for performance benefit) which involves using a function level analysis.

It works perfectly(using function analysis proxy) in opt driver with NPM, I am facing issue with integration of the pass into llc which currently do not have NPM support.

is this feasible in some way to get the per function analysis inside module for OPM in llc pipeline.

Thanks in advance for any pointers.