LRDE Tiger Compiler
1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
|
Predicate (object function) checking whether an instruction is a useless MOVE according to the TEMPMAP, and deleting it. More...
Public Member Functions | |
UselessMove (const temp::TempMap &tempmap) | |
bool | operator() (const assem::Instr *instr) const |
Private Attributes | |
const temp::TempMap & | tempmap_ |
Predicate (object function) checking whether an instruction is a useless MOVE according to the TEMPMAP, and deleting it.
Note that a better design would be to subclass std::list for list of pointers that ought to be deallocated, and then to specialize find_if to perform the delete itself.
|
inlineexplicit |
|
inline |
References precondition, and tempmap_.
|
private |
Referenced by operator()().