LLVM  3.7.0
Classes | Public Member Functions | Static Public Member Functions | List of all members
llvm::FunctionAnalysisManagerModuleProxy Class Reference

A module analysis which acts as a proxy for a function analysis manager. More...

#include <PassManager.h>

Classes

class  Result
 The result proxy object for the FunctionAnalysisManagerModuleProxy. More...
 

Public Member Functions

 FunctionAnalysisManagerModuleProxy (FunctionAnalysisManager &FAM)
 
 FunctionAnalysisManagerModuleProxy (const FunctionAnalysisManagerModuleProxy &Arg)
 
 FunctionAnalysisManagerModuleProxy (FunctionAnalysisManagerModuleProxy &&Arg)
 
FunctionAnalysisManagerModuleProxyoperator= (FunctionAnalysisManagerModuleProxy RHS)
 
Result run (Module &M)
 Run the analysis pass and create our proxy result object. More...
 

Static Public Member Functions

static void * ID ()
 
static StringRef name ()
 

Detailed Description

A module analysis which acts as a proxy for a function analysis manager.

This primarily proxies invalidation information from the module analysis manager and module pass manager to a function analysis manager. You should never use a function analysis manager from within (transitively) a module pass manager unless your parent module pass has received a proxy result object for it.

Definition at line 600 of file PassManager.h.

Constructor & Destructor Documentation

llvm::FunctionAnalysisManagerModuleProxy::FunctionAnalysisManagerModuleProxy ( FunctionAnalysisManager FAM)
inlineexplicit

Definition at line 608 of file PassManager.h.

llvm::FunctionAnalysisManagerModuleProxy::FunctionAnalysisManagerModuleProxy ( const FunctionAnalysisManagerModuleProxy Arg)
inline

Definition at line 612 of file PassManager.h.

llvm::FunctionAnalysisManagerModuleProxy::FunctionAnalysisManagerModuleProxy ( FunctionAnalysisManagerModuleProxy &&  Arg)
inline

Definition at line 615 of file PassManager.h.

Member Function Documentation

static void* llvm::FunctionAnalysisManagerModuleProxy::ID ( )
inlinestatic
static StringRef llvm::FunctionAnalysisManagerModuleProxy::name ( )
inlinestatic

Definition at line 606 of file PassManager.h.

FunctionAnalysisManagerModuleProxy& llvm::FunctionAnalysisManagerModuleProxy::operator= ( FunctionAnalysisManagerModuleProxy  RHS)
inline

Definition at line 618 of file PassManager.h.

References std::swap().

FunctionAnalysisManagerModuleProxy::Result FunctionAnalysisManagerModuleProxy::run ( Module M)

Run the analysis pass and create our proxy result object.

This doesn't do any interesting work, it is primarily used to insert our proxy result object into the module analysis cache so that we can proxy invalidation to the function analysis manager.

In debug builds, it will also assert that the analysis manager is empty as no queries should arrive at the function analysis manager prior to this analysis being requested.

Definition at line 19 of file PassManager.cpp.

References llvm::AnalysisManager< IRUnitT >::empty().


The documentation for this class was generated from the following files: