llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
Protected Member Functions | Protected Attributes | List of all members
ValueNumbering Class Reference
Inheritance diagram for ValueNumbering:
Inheritance graph
[legend]
Collaboration diagram for ValueNumbering:
Collaboration graph
[legend]

Protected Member Functions

unsigned Simplify (Block &block)
 Visit each block in the dominator tree.
 
bool VisitInst (Inst &i) override
 
bool VisitConstInst (ConstInst &i) override
 
bool VisitMovInst (MovInst &i) override
 
bool VisitOperatorInst (OperatorInst &i) override
 
bool Dedup (Inst &i)
 
bool Equal (ConstRef< Inst > a, ConstRef< Inst > b) const override
 
size_t Hash (Inst &inst)
 
size_t Hash (Ref< Value > value)
 

Protected Attributes

std::unordered_map< size_t, std::set< Inst * > > insts_
 Hash table of instructions available for de-duplication.
 

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