#include <include/exp.h>
Inheritance diagram for Location:
Definition at line 843 of file exp.h.
Public Member Functions | |
virtual Exp * | accept (ExpModifier *v) |
virtual bool | accept (ExpVisitor *v) |
virtual Exp * | clone () |
virtual void | getDefinitions (LocationSet &defs) |
UserProc * | getProc () |
Location (Location &o) | |
Location (OPER op, Exp *e, UserProc *proc) | |
Create a new Location expression. | |
virtual bool | match (const char *pattern, std::map< std::string, Exp * > &bindings) |
virtual Exp * | polySimplify (bool &bMod) |
void | setProc (UserProc *p) |
Static Public Member Functions | |
static Location * | global (const char *nam, UserProc *p) |
static Location * | local (const char *nam, UserProc *p) |
static Location * | memOf (Exp *e, UserProc *p=NULL) |
static Location * | param (const char *nam, UserProc *p=NULL) |
static Location * | regOf (Exp *e) |
static Location * | regOf (int r) |
static Location * | tempOf (Exp *e) |
Protected Member Functions | |
Location (OPER op) | |
Protected Attributes | |
UserProc * | proc |
Friends | |
class | XMLProgParser |
|
Create a new Location expression.
Definition at line 144 of file exp.cpp. References Exp::getOper(), Unary::getSubExp1(), NULL, opGlobal, opLocal, opMemOf, opParam, opRegOf, opSubscript, opTemp, and proc. Referenced by clone(), global(), local(), memOf(), param(), regOf(), and tempOf(). |
|
|
|
|
|
Reimplemented from Unary. Definition at line 3712 of file exp.cpp. References Exp::accept(), ExpModifier::postVisit(), ExpModifier::preVisit(), and Unary::subExp1. |
|
Reimplemented from Unary. Definition at line 3641 of file exp.cpp. References Exp::accept(), Unary::subExp1, and ExpVisitor::visit(). |
|
Reimplemented from Unary. Definition at line 328 of file exp.cpp. References Exp::clone(), Location(), Exp::op, proc, and Unary::subExp1. Referenced by ExpTest::testAccumulate(), ExpTest::testBinaries(), ExpTest::testCompare5(), ExpTest::testCompare6(), ExpTest::testFixSuccessor(), StatementTest::testLocationSet(), ExpTest::testSearch1(), ExpTest::testSearch2(), ExpTest::testSearch3(), ExpTest::testSearchAll(), ExpTest::testSearchReplace1(), ExpTest::testSearchReplace3(), ExpTest::testSearchReplace4(), ExpTest::testSimplifyBinary(), ExpTest::testUnaries(), and StatementTest::testWildLocationSet(). |
|
Definition at line 3540 of file exp.cpp. References LocationSet::insert(), opRegOf, regOf(), and Unary::subExp1. |
|
Definition at line 866 of file exp.h. References proc. Referenced by GetProcVisitor::visit(). |
|
Definition at line 857 of file exp.h. References Location(), and opGlobal. Referenced by Prog::addReloc(), FrontEnd::processProc(), Prog::readNativeAs(), and RtlTest::testSetConscripts(). |
|
Definition at line 3868 of file exp.cpp. References Location(), and opLocal. Referenced by UserProc::addLocal(), CallStatement::calcResults(), StmtSsaXformer::commonLhs(), UserProc::newLocal(), ExpSsaXformer::postVisit(), UserProc::renameLocal(), UserProc::setExpSymbol(), StatementTest::testAddUsedLocsBool(), RtlTest::testSetConscripts(), StatementTest::testStripSizes(), and StmtSsaXformer::visit(). |
|
Reimplemented from Unary. Definition at line 1507 of file exp.cpp. References LOG, Exp::match(), Exp::op, opMemOf, opRegOf, and Unary::subExp1. |
|
|
Definition at line 860 of file exp.h. References Location(), and opParam. Referenced by UserProc::addParameterSymbols(), Cfg::findImplicitParamAssign(), RTLInstDict::instantiateRTL(), and UserProc::mapParameters(). |
|
Reimplemented from Unary. Definition at line 3518 of file exp.cpp. References Exp::getOper(), Exp::getSubExp1(), LOG, opMemOf, Unary::polySimplify(), and VERBOSE. |
|
Definition at line 854 of file exp.h. References Location(), NULL, and opRegOf. |
|
|
Definition at line 865 of file exp.h. References proc. Referenced by CallStatement::generateCode(), CallStatement::setSigArguments(), and FixProcVisitor::visit(). |
|
Definition at line 856 of file exp.h. References Location(), NULL, and opTemp. Referenced by SparcFrontEnd::gen32op32gives64(), PentiumFrontEnd::helperFunc(), PentiumFrontEnd::processFloatCode(), and ExpTest::testSubscriptVars(). |
|
Reimplemented from Unary. |
|
Definition at line 845 of file exp.h. Referenced by clone(), getProc(), Location(), XMLProgParser::persistToXML(), and setProc(). |