ilang  0.9.1
ILAng: A Modeling and Verification Platform for SoCs
Public Types | Public Member Functions | Static Public Member Functions | List of all members
ilang::ExprMngr Class Reference

Simplifier for AST trees by sharing nodes based on the hash value. More...

#include <hash_ast.h>

Public Types

typedef std::shared_ptr< ExprMngrExprMngrPtr
 Pointer type for passing shared ast simplifier.
 
typedef std::unordered_map< size_t, const ExprPtrHashTable
 Type for cacheing the AST node hashing.
 

Public Member Functions

 ExprMngr ()
 Default constructor.
 
 ~ExprMngr ()
 Default destructor.
 
void clear ()
 Reset the hash table.
 
ExprPtr GetRep (const ExprPtr node)
 Return the AST node representative.
 
void operator() (const ExprPtr node)
 Function object for sharing ast nodes.
 

Static Public Member Functions

static ExprMngrPtr New ()
 Create an object and return the pointer. Used for hiding implementation specific types.
 

Detailed Description

Simplifier for AST trees by sharing nodes based on the hash value.


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