OpenADFortTk (including Open64 and OpenAnalysis references)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OA::CFG::CFGIRInterfaceDefault Class Reference

#include <CFGIRInterfaceDefault.hpp>

Inheritance diagram for OA::CFG::CFGIRInterfaceDefault:
Inheritance graph
Collaboration diagram for OA::CFG::CFGIRInterfaceDefault:
Collaboration graph

Public Member Functions

 CFGIRInterfaceDefault ()
 
virtual ~CFGIRInterfaceDefault ()
 
virtual bool parallelWithSuccessor (StmtHandle h)
 
virtual int numberOfDelaySlots (StmtHandle h)
 
virtual void printLeaf (LeafHandle vh, std::ostream &os)
 
virtual void dump (StmtHandle stmt, std::ostream &os)
 
virtual void dump (MemRefHandle stmt, std::ostream &os)
 
- Public Member Functions inherited from OA::CFG::CFGIRInterface
 CFGIRInterface ()
 
virtual ~CFGIRInterface ()
 
virtual OA_ptr
< IRRegionStmtIterator
procBody (ProcHandle h)=0
 
virtual bool returnStatementsAllowed ()=0
 Are return statements allowed. More...
 
virtual IRStmtType getCFGStmtType (StmtHandle h)=0
 Given a statement, return its CFG::IRStmtType. More...
 
virtual StmtLabel getLabel (StmtHandle h)=0
 
virtual OA_ptr
< IRRegionStmtIterator
getFirstInCompound (StmtHandle h)=0
 
virtual OA_ptr
< IRRegionStmtIterator
loopBody (StmtHandle h)=0
 
virtual StmtHandle loopHeader (StmtHandle h)=0
 
virtual StmtHandle getLoopIncrement (StmtHandle h)=0
 Given a loop statement, return the increment statement. More...
 
virtual bool loopIterationsDefinedAtEntry (StmtHandle h)=0
 
virtual OA_ptr
< IRRegionStmtIterator
trueBody (StmtHandle h)=0
 
virtual OA_ptr
< IRRegionStmtIterator
elseBody (StmtHandle h)=0
 
virtual int numMultiCases (StmtHandle h)=0
 
virtual OA_ptr
< IRRegionStmtIterator
multiBody (StmtHandle h, int bodyIndex)=0
 
virtual bool isBreakImplied (StmtHandle multicond)=0
 
virtual bool isCatchAll (StmtHandle h, int bodyIndex)=0
 
virtual OA_ptr
< IRRegionStmtIterator
getMultiCatchall (StmtHandle h)=0
 
virtual ExprHandle getSMultiCondition (StmtHandle h, int bodyIndex)=0
 
virtual StmtLabel getTargetLabel (StmtHandle h, int n)=0
 
virtual int numUMultiTargets (StmtHandle h)=0
 
virtual StmtLabel getUMultiTargetLabel (StmtHandle h, int targetIndex)=0
 
virtual StmtLabel getUMultiCatchallLabel (StmtHandle h)=0
 
virtual ExprHandle getUMultiCondition (StmtHandle h, int targetIndex)=0
 
- Public Member Functions inherited from OA::IRHandlesIRInterface
virtual ~IRHandlesIRInterface ()
 
virtual std::string toString (const ProcHandle h)=0
 
virtual std::string toString (const StmtHandle h)=0
 
virtual std::string toString (const ExprHandle h)=0
 
virtual std::string toString (const OpHandle h)=0
 
virtual std::string toString (const MemRefHandle h)=0
 
virtual std::string toString (const CallHandle h)=0
 
virtual std::string toString (const SymHandle h)=0
 
virtual std::string toString (const ConstSymHandle h)=0
 
virtual std::string toString (const ConstValHandle h)=0
 
virtual void dump (SymHandle sym, std::ostream &os)=0
 Given a statement, pretty-print it to the output stream os. More...
 

Detailed Description

Implements defaults for some of the methods required by the CFGIRInterface.

Definition at line 27 of file CFGIRInterfaceDefault.hpp.

Constructor & Destructor Documentation

OA::CFG::CFGIRInterfaceDefault::CFGIRInterfaceDefault ( )
inline

Definition at line 29 of file CFGIRInterfaceDefault.hpp.

virtual OA::CFG::CFGIRInterfaceDefault::~CFGIRInterfaceDefault ( )
inlinevirtual

Definition at line 30 of file CFGIRInterfaceDefault.hpp.

Member Function Documentation

virtual void OA::CFG::CFGIRInterfaceDefault::dump ( StmtHandle  stmt,
std::ostream &  os 
)
inlinevirtual

Given a statement, pretty-print it to the output stream os. The default implementation does nothing.

Implements OA::IRHandlesIRInterface.

Reimplemented in Open64IRInterface.

Definition at line 56 of file CFGIRInterfaceDefault.hpp.

virtual void OA::CFG::CFGIRInterfaceDefault::dump ( MemRefHandle  stmt,
std::ostream &  os 
)
inlinevirtual

Given a memory reference, pretty-print it to the output stream os. The default implementation does nothing.

Implements OA::IRHandlesIRInterface.

Reimplemented in Open64IRInterface.

Definition at line 61 of file CFGIRInterfaceDefault.hpp.

virtual int OA::CFG::CFGIRInterfaceDefault::numberOfDelaySlots ( StmtHandle  h)
inlinevirtual

Given an unstructured branch/jump statement, return the number of delay slots. Again, this would be used when the underlying IR is a low-level/assembly-level language for a VLIW or superscalar instruction set. The default implementation (which is appropriate for most IR's) is to return 0.

Implements OA::CFG::CFGIRInterface.

Definition at line 44 of file CFGIRInterfaceDefault.hpp.

virtual bool OA::CFG::CFGIRInterfaceDefault::parallelWithSuccessor ( StmtHandle  h)
inlinevirtual

Given a statement, return true if it issues in parallel with its successor. This would be used, for example, when the underlying IR is a low-level/assembly-level language for a VLIW or superscalar instruction set. The default implementation (which is appropriate for most IR's) is to return false.

Implements OA::CFG::CFGIRInterface.

Definition at line 37 of file CFGIRInterfaceDefault.hpp.

virtual void OA::CFG::CFGIRInterfaceDefault::printLeaf ( LeafHandle  vh,
std::ostream &  os 
)
inlinevirtual

Given a LeafHandle, pretty-print it to the output stream os. The default implementation does nothing.

Definition at line 52 of file CFGIRInterfaceDefault.hpp.


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