OpenADFortTk (including Open64 and OpenAnalysis references)
|
Associates a location pointer with a constValBasic pointer. More...
#include <ReachConstsStandard.hpp>
Public Member Functions | |
ConstDef (OA_ptr< Location > locP, OA_ptr< ConstValBasicInterface > cvbP, ConstDefType cdType) | |
ConstDef (OA_ptr< Location > locP, OA_ptr< ConstValBasicInterface > cvbP) | |
ConstDef (OA_ptr< Location > locP, ConstDefType cdType) | |
ConstDef (OA_ptr< Location > locP) | |
ConstDef (ConstDef &other) | |
ConstDef () | |
~ConstDef () | |
OA_ptr< Location > | getLocPtr () const |
OA_ptr< ConstValBasicInterface > | getConstPtr () const |
ConstDefType | getConstDefType () const |
ConstDef & | operator= (const ConstDef &other) |
OA_ptr< ConstDef > | clone () |
not doing a deep copy More... | |
void | output (IRHandlesIRInterface &pIR) |
bool | operator== (const ConstDef &other) const |
operator== just compares content of locPtr More... | |
bool | equiv (const ConstDef &other) |
method equiv compares all parts of ConstDef as appropriate More... | |
bool | operator!= (const ConstDef &other) const |
bool | operator< (const ConstDef &other) const |
bool | sameLoc (const ConstDef &other) const |
std::string | toString (OA_ptr< IRHandlesIRInterface > pIR) |
Return a string that contains a character representation of. More... | |
void | dump (std::ostream &os, OA_ptr< IRHandlesIRInterface > pIR) |
Public Member Functions inherited from OA::Annotation | |
Annotation () | |
virtual | ~Annotation () |
Private Attributes | |
OA_ptr< Location > | mLocPtr |
OA_ptr< ConstValBasicInterface > | mConstPtr |
ConstDefType | mCDType |
Additional Inherited Members | |
Static Public Member Functions inherited from OA::Annotation | |
static void | configOutput (OA_ptr< OutputBuilder > ob) |
Static Protected Attributes inherited from OA::Annotation | |
static OA_ptr< OutputBuilder > | sOutBuild |
Associates a location pointer with a constValBasic pointer.
Definition at line 56 of file ReachConstsStandard.hpp.
OA::ReachConsts::ConstDef::ConstDef | ( | OA_ptr< Location > | locP, |
OA_ptr< ConstValBasicInterface > | cvbP, | ||
ConstDefType | cdType | ||
) |
ConstDef constructor: using given location and given constant and given ConstDefType. Use with caution as ConstDefType indicates ConstValBasicInterface usage in other routines.
Definition at line 31 of file ReachConstsStandard.cpp.
References OA::ReachConsts::debug, mCDType, mConstPtr, mLocPtr, and OA_DEBUG_CTRL_MACRO.
OA::ReachConsts::ConstDef::ConstDef | ( | OA_ptr< Location > | locP, |
OA_ptr< ConstValBasicInterface > | cvbP | ||
) |
ConstDef constructor: using given location and given constant and default ConstDefType VALUE.
Definition at line 43 of file ReachConstsStandard.cpp.
References mCDType, mConstPtr, mLocPtr, OA::OA_ptr< T >::ptrEqual(), OA::ReachConsts::TOP, and OA::ReachConsts::VALUE.
OA::ReachConsts::ConstDef::ConstDef | ( | OA_ptr< Location > | locP, |
ConstDefType | cdType | ||
) |
ConstDef constructor: using given location and given ConstDefType and default ConstValBasicInterface of 0. Correct usage only involves a ConstDefType of TOP or BOTTOM. Using VALUE causes an assertion failure.
Definition at line 58 of file ReachConstsStandard.cpp.
References mCDType, mConstPtr, mLocPtr, and OA::ReachConsts::VALUE.
ConstDef constructor: using given location and default ConstDefType of TOP and default ConstValBasicInterface of 0.
Definition at line 69 of file ReachConstsStandard.cpp.
References mCDType, mConstPtr, mLocPtr, and OA::ReachConsts::TOP.
|
inline |
Definition at line 66 of file ReachConstsStandard.hpp.
|
inline |
Definition at line 69 of file ReachConstsStandard.hpp.
Referenced by clone().
|
inline |
Definition at line 70 of file ReachConstsStandard.hpp.
not doing a deep copy
Definition at line 81 of file ReachConstsStandard.hpp.
References ConstDef().
|
inline |
Definition at line 107 of file ReachConstsStandard.hpp.
References toString().
Referenced by OA::ReachConsts::ManagerICFGReachConsts::callerToCallee().
bool OA::ReachConsts::ConstDef::equiv | ( | const ConstDef & | other) |
method equiv compares all parts of ConstDef as appropriate
Equality method for ConstDef. If locations are equal and const types are equal, then true for TOP or BOTTOM. If locations are equal and const types are both VALUE, then true when actual const values are equal. False otherwise.
Definition at line 109 of file ReachConstsStandard.cpp.
References OA::ReachConsts::BOTTOM, getConstDefType(), getConstPtr(), getLocPtr(), mCDType, mConstPtr, mLocPtr, OA::ReachConsts::TOP, and OA::ReachConsts::VALUE.
|
inline |
Definition at line 75 of file ReachConstsStandard.hpp.
References mCDType.
Referenced by equiv(), and operator=().
|
inline |
Definition at line 74 of file ReachConstsStandard.hpp.
References mConstPtr.
Referenced by equiv(), and operator=().
Definition at line 73 of file ReachConstsStandard.hpp.
References mLocPtr.
Referenced by equiv(), operator<(), operator=(), operator==(), and sameLoc().
|
inline |
Definition at line 94 of file ReachConstsStandard.hpp.
bool OA::ReachConsts::ConstDef::operator< | ( | const ConstDef & | other) | const |
Just based on location, this way when insert a new ConstDef it can override the existing ConstDef with same location
Definition at line 96 of file ReachConstsStandard.cpp.
References getLocPtr(), and mLocPtr.
copy a ConstDef, not a deep copy, will refer to same Location and ConstValBasicInterface as other
Definition at line 77 of file ReachConstsStandard.cpp.
References getConstDefType(), getConstPtr(), getLocPtr(), mCDType, mConstPtr, and mLocPtr.
bool OA::ReachConsts::ConstDef::operator== | ( | const ConstDef & | other) | const |
operator== just compares content of locPtr
Equality operator for ConstDef. Just inspects location contents.
Definition at line 85 of file ReachConstsStandard.cpp.
References getLocPtr(), and mLocPtr.
|
virtual |
Implements OA::Annotation.
Definition at line 374 of file ReachConstsStandard.cpp.
References OA::ReachConsts::BOTTOM, mCDType, mLocPtr, OA::Annotation::output(), OA::Annotation::sOutBuild, OA::ReachConsts::TOP, and OA::ReachConsts::VALUE.
|
inline |
Definition at line 96 of file ReachConstsStandard.hpp.
References getLocPtr(), and mLocPtr.
std::string OA::ReachConsts::ConstDef::toString | ( | OA_ptr< IRHandlesIRInterface > | pIR) |
Return a string that contains a character representation of.
Definition at line 162 of file ReachConstsStandard.cpp.
References OA::ReachConsts::BOTTOM, mCDType, OA::ReachConsts::TOP, and OA::ReachConsts::VALUE.
Referenced by dump().
|
private |
Definition at line 116 of file ReachConstsStandard.hpp.
Referenced by ConstDef(), equiv(), getConstDefType(), operator=(), output(), and toString().
|
private |
Definition at line 115 of file ReachConstsStandard.hpp.
Referenced by ConstDef(), equiv(), getConstPtr(), and operator=().
Definition at line 114 of file ReachConstsStandard.hpp.
Referenced by ConstDef(), equiv(), getLocPtr(), operator<(), operator=(), operator==(), output(), and sameLoc().