Spicy
Public Types | Public Member Functions | Public Attributes | List of all members
hilti::OptimizerVisitor Class Reference
Inheritance diagram for hilti::OptimizerVisitor:
hilti::ConstantFoldingVisitor hilti::FunctionVisitor hilti::MemberVisitor hilti::TypeVisitor

Public Types

enum  Stage { COLLECT, PRUNE_USES, PRUNE_DECLS }
 

Public Member Functions

template<typename Position >
void replaceNode (Position &p, Node replacement)
 
template<typename Position >
void removeNode (Position &p)
 
virtual void collect (Node &)
 
virtual bool prune_uses (Node &)
 
virtual bool prune_decls (Node &)
 

Public Attributes

Stage _stage = Stage::COLLECT
 
Module_current_module = nullptr
 

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