Displaying 2 results from an estimated 2 matches for "functionanalysismanagercgsccproxy".
2020 Jan 07
2
Let CallGraphSCCPass Use Function-Level Analysis
Dear all,
I would like to use the PostDominatorTree in ArgPromotion. I did not find an example of how to use function level analysis inside CallGraphSCCPass. I tried to follow an example of how to use function-level pass in a module pass, but I hit "llvm_unreachable" in PMDataManager::addLowerLevelRequiredPass.
What would be a proper way to make PostDominatorTree available in
2020 Jan 07
2
Let CallGraphSCCPass Use Function-Level Analysis
...her. These are specializations of
> 'llvm::InnerAnalysisManagerProxy'. For example,
> 'llvm::FunctionAnalysisManagerModuleProxy' allows you to access
> function analyses from within module passes.
>
> In your case, it sounds like you'd want to use
> 'llvm::FunctionAnalysisManagerCGSCCProxy', which allows you to access
> function analyses from within an CGSCC pass. Here's an example of
> using it:
>
> ```
> class MyCGSCCPass : public llvm::PassInfoMixin<MyCGSCCPass> {
> public:
> llvm::PreservedAnalyses run(llvm::LazyCallGraph::SCC &C,
>...