Scheduling a custom pass to run after AlwaysInliner


I want to schedule my custom pass to run after all inlining is done, specifically i want to go after AlwaysInliner pass.

But that doesn’t seem to work
“AU.addRequired();”, where AU is an object AnalysisUsage

AlwaysInliner seems to be in anonymous namespace in cpp file, so i can’t reference it.

Is there a simple way to do that?