LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | List of all members
llvm::DebugIR Class Reference

#include <DebugIR.h>

Inheritance diagram for llvm::DebugIR:
Inheritance graph
[legend]
Collaboration diagram for llvm::DebugIR:
Collaboration graph
[legend]

Public Member Functions

const char * getPassName () const
 
 DebugIR (bool HideDebugIntrinsics, bool HideDebugMetadata, llvm::StringRef Directory, llvm::StringRef Filename)
 
 DebugIR ()
 
bool runOnModule (llvm::Module &M, std::string &Path)
 Run pass on M and set Path to the source file path in the output module. More...
 
bool runOnModule (llvm::Module &M)
 
- Public Member Functions inherited from llvm::ModulePass
PasscreatePrinterPass (raw_ostream &O, const std::string &Banner) const
 createPrinterPass - Get a module printer pass. More...
 
virtual void assignPassManager (PMStack &PMS, PassManagerType T)
 
virtual PassManagerType getPotentialPassManagerType () const
 Return what kind of Pass Manager can manage this pass. More...
 
 ModulePass (char &pid)
 
virtual ~ModulePass ()
 
- Public Member Functions inherited from llvm::Pass
 Pass (PassKind K, char &pid)
 
virtual ~Pass ()
 
PassKind getPassKind () const
 
AnalysisID getPassID () const
 getPassID - Return the PassID number that corresponds to this pass. More...
 
virtual bool doInitialization (Module &)
 
virtual bool doFinalization (Module &)
 
virtual void print (raw_ostream &O, const Module *M) const
 
void dump () const
 
virtual void preparePassManager (PMStack &)
 Check if available pass managers are suitable for this pass or not. More...
 
void setResolver (AnalysisResolver *AR)
 
AnalysisResolvergetResolver () const
 
virtual void getAnalysisUsage (AnalysisUsage &) const
 
virtual void releaseMemory ()
 
virtual void * getAdjustedAnalysisPointer (AnalysisID ID)
 
virtual ImmutablePassgetAsImmutablePass ()
 
virtual PMDataManagergetAsPMDataManager ()
 
virtual void verifyAnalysis () const
 
virtual void dumpPassStructure (unsigned Offset=0)
 
template<typename AnalysisType >
AnalysisType * getAnalysisIfAvailable () const
 
bool mustPreserveAnalysisID (char &AID) const
 
template<typename AnalysisType >
AnalysisType & getAnalysis () const
 
template<typename AnalysisType >
AnalysisType & getAnalysis (Function &F)
 
template<typename AnalysisType >
AnalysisType & getAnalysisID (AnalysisID PI) const
 
template<typename AnalysisType >
AnalysisType & getAnalysisID (AnalysisID PI, Function &F)
 

Static Public Attributes

static char ID = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::Pass
static const PassInfolookupPassInfo (const void *TI)
 
static const PassInfolookupPassInfo (StringRef Arg)
 
static PasscreatePass (AnalysisID ID)
 

Detailed Description

Definition at line 24 of file DebugIR.h.

Constructor & Destructor Documentation

llvm::DebugIR::DebugIR ( bool  HideDebugIntrinsics,
bool  HideDebugMetadata,
llvm::StringRef  Directory,
llvm::StringRef  Filename 
)
inline

Generate a file on disk to be displayed in a debugger. If Filename and Directory are empty, a temporary path will be generated.

Definition at line 50 of file DebugIR.h.

llvm::DebugIR::DebugIR ( )
inline

Modify input in-place; do not generate additional files, and do not hide any debug intrinsics/metadata that might be present.

Definition at line 59 of file DebugIR.h.

Member Function Documentation

const char* llvm::DebugIR::getPassName ( ) const
inlinevirtual

getPassName - Return a nice clean name for a pass. This usually implemented in terms of the name that is registered by one of the Registration templates, but can be overloaded directly.

Reimplemented from llvm::Pass.

Definition at line 46 of file DebugIR.h.

bool llvm::DebugIR::runOnModule ( llvm::Module M,
std::string &  Path 
)

Run pass on M and set Path to the source file path in the output module.

Definition at line 600 of file DebugIR.cpp.

bool llvm::DebugIR::runOnModule ( llvm::Module M)
virtual

runOnModule - Virtual method overriden by subclasses to process the module being operated on.

Implements llvm::ModulePass.

Definition at line 569 of file DebugIR.cpp.

References DEBUG, llvm::Module::dump(), llvm::OwningPtr< T >::get(), and llvm::report_fatal_error().

Member Data Documentation

char DebugIR::ID = 0
static

Definition at line 44 of file DebugIR.h.


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