#include <MPICFGIRInterface.hpp>


Public Member Functions | |
| MPICFGIRInterface () | |
| virtual | ~MPICFGIRInterface () |
| virtual OA_ptr< IRStmtIterator > | getStmtIterator (ProcHandle h)=0 |
| virtual OA_ptr < IRCallsiteIterator > | getCallsites (StmtHandle h)=0 |
| Return an iterator over all of the callsites in a given stmt. | |
| virtual OA_ptr < IRCallsiteParamIterator > | getCallsiteParams (ExprHandle h)=0 |
| virtual SymHandle | getSymHandle (ExprHandle expr)=0 |
| Return a symbol handle for a given expression handle. | |
| virtual SymHandle | getProcSymHandle (ProcHandle h)=0 |
| Return a symbol handle for a given procedure handle. | |
| virtual std::string | toString (const SymHandle h)=0 |
| Return a string version of the symbol handle. | |
| virtual std::string | toString (const ExprHandle h)=0 |
| Return a string version of an expression handle. | |
| virtual OA_ptr< ExprTree > | getExprTree (ExprHandle h)=0 |
| Given an ExprHandle, return an ExprTree. | |
| virtual IRProcType | getMPICFGProcType (SymHandle h)=0 |
| virtual bool | isMPICFGAnyTag (ConstValHandle h)=0 |
| virtual bool | isMPICFGAnyTag (ConstSymHandle h)=0 |
| virtual bool | isMPICFGAnyTag (OA_ptr< ConstValBasicInterface > c)=0 |
| virtual bool | isMPICFGAnySource (ConstValHandle h)=0 |
| virtual bool | isMPICFGAnySource (ConstSymHandle h)=0 |
| virtual bool | isMPICFGAnySource (OA_ptr< ConstValBasicInterface > c)=0 |
| virtual ExprHandle | getMPICFGCommParam (OA::ExprHandle h)=0 |
| Return an expression handle for the 'communicator' parameter in the. | |
| virtual ExprHandle | getMPICFGDataTypeParam (OA::ExprHandle h)=0 |
| Return an expression handle for the 'data type' parameter in the. | |
| virtual ExprHandle | getMPICFGDestParam (OA::ExprHandle h)=0 |
| Return an expression handle for the 'dest' parameter in the. | |
| virtual ExprHandle | getMPICFGGroupParam (OA::ExprHandle h)=0 |
| Return an expression handle for the 'group' parameter in the. | |
| virtual ExprHandle | getMPICFGOpParam (OA::ExprHandle h)=0 |
| Return an expression handle for the 'op' parameter in the. | |
| virtual ExprHandle | getMPICFGRankParam (OA::ExprHandle h)=0 |
| Return an expression handle for the 'rank' parameter in the. | |
| virtual ExprHandle | getMPICFGRootParam (OA::ExprHandle h)=0 |
| Return an expression handle for the 'root' parameter in the. | |
| virtual ExprHandle | getMPICFGSizeParam (OA::ExprHandle h)=0 |
| Return an expression handle for the 'size' parameter in the. | |
| virtual ExprHandle | getMPICFGSourceParam (OA::ExprHandle h)=0 |
| Return an expression handle for the 'source' parameter in the. | |
| virtual ExprHandle | getMPICFGTagParam (OA::ExprHandle h)=0 |
| Return an expression handle for the 'tag' parameter in the. | |
| virtual void | dumpMPICFGparam (ExprHandle h, std::ostream &os)=0 |
| virtual int | returnOpEnumValInt (OA::OpHandle op)=0 |
| temporary routine to find things out | |
| virtual void | dump (StmtHandle stmt, std::ostream &os) |
| virtual std::string | toString (OA_ptr< OA::ConstValBasicInterface > cvPtr)=0 |
| Temporary routine for testing MPICFG. | |
| virtual IRRankVarStmtType | getMPICFGRankVarStmtType (OA::StmtHandle h)=0 |
| RankVarStmtType: interested in RANK_DEF_STMTs (define the MPI rank var). | |
| virtual MemRefHandle | getMPICFGRankDefMemRef (OA::StmtHandle h)=0 |
| virtual StmtHandle | getStmtFromMemRef (OA::MemRefHandle h)=0 |
| Return a stmt handle for the given memory reference handle. | |
| virtual OA_ptr < MemRefHandleIterator > | getAllMemRefs (StmtHandle stmt)=0 |
| virtual OA_ptr < MemRefHandleIterator > | getDefMemRefs (StmtHandle stmt)=0 |
| virtual OA_ptr < MemRefHandleIterator > | getUseMemRefs (StmtHandle stmt)=0 |
| virtual std::string | toString (const StmtHandle h)=0 |
| Given a statement handle, get a string expressing its value. | |
| virtual std::string | toString (const MemRefHandle h)=0 |
| Given a memory reference handle, get a succinct string representation. | |
| virtual OA_ptr < ConstValBasicInterface > | getConstValBasic (ConstSymHandle c)=0 |
| virtual OA_ptr < ConstValBasicInterface > | getConstValBasic (ConstValHandle c)=0 |
| virtual IRCopyStmtType | getCopyStmtType (OA::StmtHandle h)=0 |
| Given a statement, return its MPICFG::IRCopyStmtType. | |
| virtual OA_ptr < CopyStmtPairIterator > | getCopyStmtPairIterator (OA::StmtHandle h)=0 |
| virtual bool | isaRelOp (OA::OpHandle h)=0 |
| virtual OA::MPICFG::RelOp | getRelOp (OA::OpHandle h)=0 |
| virtual OA_ptr < ConstValIntInterface > | getConstValInt (OA_ptr< ConstValBasicInterface > c)=0 |
| virtual ExprHandle | getLoopCondition (OA::StmtHandle h)=0 |
| get condition expression handles from various stmt types | |
| virtual ExprHandle | getCondition (OA::StmtHandle h)=0 |
| virtual ExprHandle | getSMultiCondition (OA::StmtHandle h, int bodyIndex)=0 |
| virtual ExprHandle | getSMultiTest (OA::StmtHandle h)=0 |
| virtual ExprHandle | getUMultiCondition (OA::StmtHandle h, int targetIndex)=0 |
| virtual ExprHandle | getUMultiTest (OA::StmtHandle h)=0 |
| virtual int | numMultiCases (OA::StmtHandle h)=0 |
| virtual int | numUMultiTargets (OA::StmtHandle h)=0 |
| virtual CFG::IRStmtType | getCFGStmtType (StmtHandle h)=0 |
| Given a statement, return its CFG::IRStmtType. | |
| virtual OA_ptr < OA::ConstValBasicInterface > | getConstFromSwitchCase (OA::ExprHandle h)=0 |
The MPICFGIRInterface abstract base class gives a set of methods for manipulating a program. This is the primary interface to the underlying intermediate representation.
Definition at line 157 of file MPICFGIRInterface.hpp.
| OA::MPICFG::MPICFGIRInterface::MPICFGIRInterface | ( | ) | [inline] |
Definition at line 161 of file MPICFGIRInterface.hpp.
| virtual OA::MPICFG::MPICFGIRInterface::~MPICFGIRInterface | ( | ) | [inline, virtual] |
Definition at line 162 of file MPICFGIRInterface.hpp.
| virtual void OA::MPICFG::MPICFGIRInterface::dump | ( | StmtHandle | stmt, | |
| std::ostream & | os | |||
| ) | [inline, virtual] |
Given a statement, pretty-print it to the output stream os. The default implementation does nothing.
Implements OA::IRHandlesIRInterface.
Definition at line 300 of file MPICFGIRInterface.hpp.
| virtual void OA::MPICFG::MPICFGIRInterface::dumpMPICFGparam | ( | ExprHandle | h, | |
| std::ostream & | os | |||
| ) | [pure virtual] |
| virtual OA_ptr<MemRefHandleIterator> OA::MPICFG::MPICFGIRInterface::getAllMemRefs | ( | StmtHandle | stmt | ) | [pure virtual] |
Return a list of all the memory reference handles that appear in the given statement. User is responsible for deleting the list
| virtual OA_ptr<IRCallsiteParamIterator> OA::MPICFG::MPICFGIRInterface::getCallsiteParams | ( | ExprHandle | h | ) | [pure virtual] |
| virtual OA_ptr<IRCallsiteIterator> OA::MPICFG::MPICFGIRInterface::getCallsites | ( | StmtHandle | h | ) | [pure virtual] |
Return an iterator over all of the callsites in a given stmt.
| virtual CFG::IRStmtType OA::MPICFG::MPICFGIRInterface::getCFGStmtType | ( | StmtHandle | h | ) | [pure virtual] |
Given a statement, return its CFG::IRStmtType.
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getCondition | ( | OA::StmtHandle | h | ) | [pure virtual] |
| virtual OA_ptr<OA::ConstValBasicInterface> OA::MPICFG::MPICFGIRInterface::getConstFromSwitchCase | ( | OA::ExprHandle | h | ) | [pure virtual] |
Hack! convert from the expression handle on switch case edge to the constant it contains, otherwise, NULL.
| virtual OA_ptr<ConstValBasicInterface> OA::MPICFG::MPICFGIRInterface::getConstValBasic | ( | ConstSymHandle | c | ) | [pure virtual] |
Given a ConstSymHandle return an abstraction representing the constant value
Implements OA::EvalToConstVisitorIRInterface.
| virtual OA_ptr<ConstValBasicInterface> OA::MPICFG::MPICFGIRInterface::getConstValBasic | ( | ConstValHandle | c | ) | [pure virtual] |
Given a ConstValHandle return an abstraction representing the constant value
Implements OA::EvalToConstVisitorIRInterface.
| virtual OA_ptr<ConstValIntInterface> OA::MPICFG::MPICFGIRInterface::getConstValInt | ( | OA_ptr< ConstValBasicInterface > | c | ) | [pure virtual] |
Convert a ConstValBasicInterface into a ConstValIntInterface if the constant is an integer, NULL otherwise
| virtual OA_ptr<CopyStmtPairIterator> OA::MPICFG::MPICFGIRInterface::getCopyStmtPairIterator | ( | OA::StmtHandle | h | ) | [pure virtual] |
Given a statement return a list to the pairs of target MemRefHandle, use MemRefHandle where target = source
| virtual IRCopyStmtType OA::MPICFG::MPICFGIRInterface::getCopyStmtType | ( | OA::StmtHandle | h | ) | [pure virtual] |
Given a statement, return its MPICFG::IRCopyStmtType.
| virtual OA_ptr<MemRefHandleIterator> OA::MPICFG::MPICFGIRInterface::getDefMemRefs | ( | StmtHandle | stmt | ) | [pure virtual] |
Return a list of all the target memory reference handles that appear in the given statement. User is responsible for deleting the list
| virtual OA_ptr<ExprTree> OA::MPICFG::MPICFGIRInterface::getExprTree | ( | ExprHandle | h | ) | [pure virtual] |
Given an ExprHandle, return an ExprTree.
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getLoopCondition | ( | OA::StmtHandle | h | ) | [pure virtual] |
get condition expression handles from various stmt types
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getMPICFGCommParam | ( | OA::ExprHandle | h | ) | [pure virtual] |
Return an expression handle for the 'communicator' parameter in the.
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getMPICFGDataTypeParam | ( | OA::ExprHandle | h | ) | [pure virtual] |
Return an expression handle for the 'data type' parameter in the.
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getMPICFGDestParam | ( | OA::ExprHandle | h | ) | [pure virtual] |
Return an expression handle for the 'dest' parameter in the.
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getMPICFGGroupParam | ( | OA::ExprHandle | h | ) | [pure virtual] |
Return an expression handle for the 'group' parameter in the.
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getMPICFGOpParam | ( | OA::ExprHandle | h | ) | [pure virtual] |
Return an expression handle for the 'op' parameter in the.
| virtual IRProcType OA::MPICFG::MPICFGIRInterface::getMPICFGProcType | ( | SymHandle | h | ) | [pure virtual] |
Return an IRProcType (an MPI call procedure designator) for a given symbol handle
| virtual MemRefHandle OA::MPICFG::MPICFGIRInterface::getMPICFGRankDefMemRef | ( | OA::StmtHandle | h | ) | [pure virtual] |
Return a memory reference handle for the 'rank' parameter in the MPI call within the given stmt. Should only be called with a MPICFG::RANK_DEF_STMT statement.
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getMPICFGRankParam | ( | OA::ExprHandle | h | ) | [pure virtual] |
Return an expression handle for the 'rank' parameter in the.
| virtual IRRankVarStmtType OA::MPICFG::MPICFGIRInterface::getMPICFGRankVarStmtType | ( | OA::StmtHandle | h | ) | [pure virtual] |
RankVarStmtType: interested in RANK_DEF_STMTs (define the MPI rank var).
Return an IRRankVarStmtType for the given stmt
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getMPICFGRootParam | ( | OA::ExprHandle | h | ) | [pure virtual] |
Return an expression handle for the 'root' parameter in the.
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getMPICFGSizeParam | ( | OA::ExprHandle | h | ) | [pure virtual] |
Return an expression handle for the 'size' parameter in the.
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getMPICFGSourceParam | ( | OA::ExprHandle | h | ) | [pure virtual] |
Return an expression handle for the 'source' parameter in the.
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getMPICFGTagParam | ( | OA::ExprHandle | h | ) | [pure virtual] |
Return an expression handle for the 'tag' parameter in the.
| virtual SymHandle OA::MPICFG::MPICFGIRInterface::getProcSymHandle | ( | ProcHandle | h | ) | [pure virtual] |
Return a symbol handle for a given procedure handle.
| virtual OA::MPICFG::RelOp OA::MPICFG::MPICFGIRInterface::getRelOp | ( | OA::OpHandle | h | ) | [pure virtual] |
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getSMultiCondition | ( | OA::StmtHandle | h, | |
| int | bodyIndex | |||
| ) | [pure virtual] |
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getSMultiTest | ( | OA::StmtHandle | h | ) | [pure virtual] |
| virtual StmtHandle OA::MPICFG::MPICFGIRInterface::getStmtFromMemRef | ( | OA::MemRefHandle | h | ) | [pure virtual] |
Return a stmt handle for the given memory reference handle.
| virtual OA_ptr<IRStmtIterator> OA::MPICFG::MPICFGIRInterface::getStmtIterator | ( | ProcHandle | h | ) | [pure virtual] |
Given a subprogram return an IRStmtIterator for the entire subprogram
| virtual SymHandle OA::MPICFG::MPICFGIRInterface::getSymHandle | ( | ExprHandle | expr | ) | [pure virtual] |
Return a symbol handle for a given expression handle.
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getUMultiCondition | ( | OA::StmtHandle | h, | |
| int | targetIndex | |||
| ) | [pure virtual] |
| virtual ExprHandle OA::MPICFG::MPICFGIRInterface::getUMultiTest | ( | OA::StmtHandle | h | ) | [pure virtual] |
| virtual OA_ptr<MemRefHandleIterator> OA::MPICFG::MPICFGIRInterface::getUseMemRefs | ( | StmtHandle | stmt | ) | [pure virtual] |
Return a list of all the use memory reference handles that appear in the given statement User is responsible for deleting the list
| virtual bool OA::MPICFG::MPICFGIRInterface::isaRelOp | ( | OA::OpHandle | h | ) | [pure virtual] |
| virtual bool OA::MPICFG::MPICFGIRInterface::isMPICFGAnySource | ( | OA_ptr< ConstValBasicInterface > | c | ) | [pure virtual] |
Return a boolean answer to the question of whether the given ConstValBasicInterface* corresponds to the MPI wild card MPI_ANY_SOURCE
| virtual bool OA::MPICFG::MPICFGIRInterface::isMPICFGAnySource | ( | ConstValHandle | h | ) | [pure virtual] |
Return a boolean answer to the question of whether the given constant value handle corresponds to the MPI wild card MPI_ANY_SOURCE
| virtual bool OA::MPICFG::MPICFGIRInterface::isMPICFGAnySource | ( | ConstSymHandle | h | ) | [pure virtual] |
Return a boolean answer to the question of whether the given constant symbol handle corresponds to the MPI wild card MPI_ANY_SOURCE
| virtual bool OA::MPICFG::MPICFGIRInterface::isMPICFGAnyTag | ( | OA_ptr< ConstValBasicInterface > | c | ) | [pure virtual] |
Return a boolean answer to the question of whether the given ConstValBasicInterface* corresponds to the MPI wild card MPI_ANY_TAG
| virtual bool OA::MPICFG::MPICFGIRInterface::isMPICFGAnyTag | ( | ConstSymHandle | h | ) | [pure virtual] |
Return a boolean answer to the question of whether the given constant symbol handle corresponds to the MPI wild card MPI_ANY_TAG
| virtual bool OA::MPICFG::MPICFGIRInterface::isMPICFGAnyTag | ( | ConstValHandle | h | ) | [pure virtual] |
Return a boolean answer to the question of whether the given constant value handle corresponds to the MPI wild card MPI_ANY_TAG
| virtual int OA::MPICFG::MPICFGIRInterface::numMultiCases | ( | OA::StmtHandle | h | ) | [pure virtual] |
| virtual int OA::MPICFG::MPICFGIRInterface::numUMultiTargets | ( | OA::StmtHandle | h | ) | [pure virtual] |
| virtual int OA::MPICFG::MPICFGIRInterface::returnOpEnumValInt | ( | OA::OpHandle | op | ) | [pure virtual] |
temporary routine to find things out
Implements OA::EvalToConstVisitorIRInterface.
| virtual std::string OA::MPICFG::MPICFGIRInterface::toString | ( | const MemRefHandle | h | ) | [pure virtual] |
Given a memory reference handle, get a succinct string representation.
Implements OA::EvalToConstVisitorIRInterface.
| virtual std::string OA::MPICFG::MPICFGIRInterface::toString | ( | const ExprHandle | h | ) | [pure virtual] |
Return a string version of an expression handle.
Implements OA::EvalToConstVisitorIRInterface.
| virtual std::string OA::MPICFG::MPICFGIRInterface::toString | ( | const SymHandle | h | ) | [pure virtual] |
Return a string version of the symbol handle.
Implements OA::EvalToConstVisitorIRInterface.
| virtual std::string OA::MPICFG::MPICFGIRInterface::toString | ( | const StmtHandle | h | ) | [pure virtual] |
Given a statement handle, get a string expressing its value.
Implements OA::EvalToConstVisitorIRInterface.
| virtual std::string OA::MPICFG::MPICFGIRInterface::toString | ( | OA_ptr< OA::ConstValBasicInterface > | cvPtr | ) | [pure virtual] |
Temporary routine for testing MPICFG.
Implements OA::EvalToConstVisitorIRInterface.
1.7.1