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

#include <EvalToConstVisitorIRInterface.hpp>

Inheritance diagram for OA::EvalToConstVisitorIRInterface:
Inheritance graph
Collaboration diagram for OA::EvalToConstVisitorIRInterface:
Collaboration graph

Public Member Functions

 EvalToConstVisitorIRInterface ()
 
virtual ~EvalToConstVisitorIRInterface ()
 
virtual OA_ptr
< ConstValBasicInterface
evalOp (OpHandle op, OA_ptr< ConstValBasicInterface > operand1, OA_ptr< ConstValBasicInterface > operand2)=0
 
virtual OA_ptr
< ConstValBasicInterface
getConstValBasic (ConstSymHandle c)=0
 
virtual OA_ptr
< ConstValBasicInterface
getConstValBasic (ConstValHandle c)=0
 
virtual std::string toString (OA_ptr< ConstValBasicInterface > cvPtr)=0
 Temporary routine for testing MPICFG. More...
 
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 SymHandle h)=0
 
virtual std::string toString (const ConstSymHandle h)=0
 
virtual std::string toString (const ConstValHandle h)=0
 
virtual OA_ptr
< ConstValBasicInterface
getConstValBasic (unsigned int val)=0
 Temporary routine for testing ReachConsts. More...
 
virtual int returnOpEnumValInt (OA::OpHandle op)=0
 temporary routine to find things out More...
 
- Public Member Functions inherited from OA::IRHandlesIRInterface
virtual ~IRHandlesIRInterface ()
 
virtual std::string toString (const CallHandle h)=0
 
virtual void dump (MemRefHandle h, std::ostream &os)=0
 Given a memory reference, pretty-print it to the output stream os. More...
 
virtual void dump (StmtHandle stmt, std::ostream &os)=0
 Given a statement, pretty-print it to the output stream os. More...
 
virtual void dump (SymHandle sym, std::ostream &os)=0
 Given a statement, pretty-print it to the output stream os. More...
 

Detailed Description

The ReachConstsIRInterface abstract base class gives a set of methods for querying the source IR for information relevant to constant propagation Analysis. This is the primary interface for ReachConsts to the underlying intermediate representation.

Definition at line 35 of file EvalToConstVisitorIRInterface.hpp.

Constructor & Destructor Documentation

OA::EvalToConstVisitorIRInterface::EvalToConstVisitorIRInterface ( )
inline

Definition at line 37 of file EvalToConstVisitorIRInterface.hpp.

virtual OA::EvalToConstVisitorIRInterface::~EvalToConstVisitorIRInterface ( )
inlinevirtual

Definition at line 38 of file EvalToConstVisitorIRInterface.hpp.

Member Function Documentation

virtual OA_ptr<ConstValBasicInterface> OA::EvalToConstVisitorIRInterface::evalOp ( OpHandle  op,
OA_ptr< ConstValBasicInterface operand1,
OA_ptr< ConstValBasicInterface operand2 
)
pure virtual

Given an OpHandle and two operands (unary ops will just use the first operand and the second operand should be NULL) return a ConstValBasicInterface User must free the ConstValBasicInterface

Implemented in Open64IRInterface, and OA::ReachConsts::ReachConstsIRInterface.

virtual OA_ptr<ConstValBasicInterface> OA::EvalToConstVisitorIRInterface::getConstValBasic ( ConstSymHandle  c)
pure virtual

Given a ConstSymHandle return an abstraction representing the constant value User must free the ConstValBasicInterface

Implemented in Open64IRInterface, OA::MPICFG::MPICFGIRInterface, and OA::ReachConsts::ReachConstsIRInterface.

virtual OA_ptr<ConstValBasicInterface> OA::EvalToConstVisitorIRInterface::getConstValBasic ( ConstValHandle  c)
pure virtual

Given a ConstValHandle return an abstraction representing the constant value User must free the ConstValBasicInterface

Implemented in Open64IRInterface, OA::MPICFG::MPICFGIRInterface, and OA::ReachConsts::ReachConstsIRInterface.

virtual OA_ptr<ConstValBasicInterface> OA::EvalToConstVisitorIRInterface::getConstValBasic ( unsigned int  val)
pure virtual

Temporary routine for testing ReachConsts.

Implemented in Open64IRInterface, and OA::ReachConsts::ReachConstsIRInterface.

virtual int OA::EvalToConstVisitorIRInterface::returnOpEnumValInt ( OA::OpHandle  op)
pure virtual

temporary routine to find things out

Implemented in Open64IRInterface, OA::MPICFG::MPICFGIRInterface, and OA::ReachConsts::ReachConstsIRInterface.

virtual std::string OA::EvalToConstVisitorIRInterface::toString ( OA_ptr< ConstValBasicInterface cvPtr)
pure virtual
virtual std::string OA::EvalToConstVisitorIRInterface::toString ( const ProcHandle  h)
pure virtual
virtual std::string OA::EvalToConstVisitorIRInterface::toString ( const StmtHandle  h)
pure virtual
virtual std::string OA::EvalToConstVisitorIRInterface::toString ( const ExprHandle  h)
pure virtual
virtual std::string OA::EvalToConstVisitorIRInterface::toString ( const OpHandle  h)
pure virtual
virtual std::string OA::EvalToConstVisitorIRInterface::toString ( const MemRefHandle  h)
pure virtual
virtual std::string OA::EvalToConstVisitorIRInterface::toString ( const SymHandle  h)
pure virtual
virtual std::string OA::EvalToConstVisitorIRInterface::toString ( const ConstSymHandle  h)
pure virtual
virtual std::string OA::EvalToConstVisitorIRInterface::toString ( const ConstValHandle  h)
pure virtual

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