Spicy
Classes | Public Member Functions | Public Attributes | List of all members
hilti::FunctionVisitor Struct Reference
Inheritance diagram for hilti::FunctionVisitor:
hilti::OptimizerVisitor hilti::detail::visitor::Visitor< Result, Dispatcher, Erased, order >

Classes

struct  Uses
 

Public Member Functions

void collect (Node &node) override
 
bool prune (Node &node)
 
bool prune_uses (Node &node) override
 
bool prune_decls (Node &node) override
 
result_t operator() (const Module &m, position_t p)
 
result_t operator() (const declaration::Field &x, position_t p)
 
result_t operator() (const declaration::Function &x, position_t p)
 
result_t operator() (const operator_::struct_::MemberCall &x, position_t p)
 
result_t operator() (const operator_::function::Call &call, position_t p)
 
- Public Member Functions inherited from hilti::OptimizerVisitor
template<typename Position >
void replaceNode (Position &p, Node replacement)
 
template<typename Position >
void removeNode (Position &p)
 
- Public Member Functions inherited from hilti::detail::visitor::Visitor< Result, Dispatcher, Erased, order >
virtual void preDispatch (const Erased &, int)
 
auto dispatch (position_t &i)
 
auto dispatch (const_position_t &i)
 
auto dispatch (Erased *n)
 
auto dispatch (const Erased &n)
 
auto walk (const Erased &root)
 
auto walk (Erased *root)
 

Public Attributes

std::map< ID, Uses_data
 
- Public Attributes inherited from hilti::OptimizerVisitor
Stage _stage = Stage::COLLECT
 
Module_current_module = nullptr
 

Additional Inherited Members

- Public Types inherited from hilti::OptimizerVisitor
enum  Stage { COLLECT, PRUNE_USES, PRUNE_DECLS }
 
- Public Types inherited from hilti::detail::visitor::Visitor< Result, Dispatcher, Erased, order >
using result_t = Result
 
using erased_t = Erased
 
using base_t = Visitor< Result, Dispatcher, Erased, order >
 
using visitor_t = Dispatcher
 
using iterator_t = Iterator< Erased, order, false >
 
using const_iterator_t = Iterator< Erased, order, true >
 
using position_t = typename iterator_t::Position
 
using const_position_t = typename const_iterator_t::Position
 
- Static Public Attributes inherited from hilti::detail::visitor::Visitor< Result, Dispatcher, Erased, order >
static const Order order_ = order
 

Member Function Documentation

◆ operator()()

result_t hilti::FunctionVisitor::operator() ( const declaration::Function x,
position_t  p 
)
inline

return false; // XXX


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