tvm
|
Internal handler that defines custom behaviors.. More...
#include <structural_equal.h>
Public Member Functions | |
virtual bool | SEqualReduce (const ObjectRef &lhs, const ObjectRef &rhs, bool map_free_vars)=0 |
Reduce condition to equality of lhs and rhs. More... | |
virtual ObjectRef | MapLhsToRhs (const ObjectRef &lhs)=0 |
Lookup the graph node equal map for vars that are already mapped. More... | |
virtual void | MarkGraphNode ()=0 |
Mark current comparison as graph node equal comparison. More... | |
Internal handler that defines custom behaviors..
Lookup the graph node equal map for vars that are already mapped.
This is an auxiliary method to check the Map<Var, Value> equality.
lhs | an lhs value. |
|
pure virtual |
Mark current comparison as graph node equal comparison.
|
pure virtual |
Reduce condition to equality of lhs and rhs.
lhs | The left operand. |
rhs | The right operand. |
map_free_vars | Whether do we allow remap variables if possible. |