|
hoshi-lang dev
Yet another programming language
|
#include <IROptimizer.hpp>
Public Types | |
| using | FuncIdentifier = std::pair< indexT, indexT > |
Public Member Functions | |
| CallGraph ()=default | |
| void | addCall (FuncIdentifier caller, FuncIdentifier callee) |
| void | traverseGraph () |
Public Attributes | |
| yoi::indexT | entryModuleIndex {} |
| std::map< FuncIdentifier, std::set< FuncIdentifier > > | callGraph |
| std::map< FuncIdentifier, std::set< FuncIdentifier > > | callerGraph |
| std::set< FuncIdentifier > | entryPoints |
| std::set< FuncIdentifier > | unreachableFunctions |
| std::set< FuncIdentifier > | functions |
Definition at line 21 of file IROptimizer.hpp.
| using FuncIdentifier = std::pair<indexT, indexT> |
Definition at line 22 of file IROptimizer.hpp.
|
default |
| void addCall | ( | FuncIdentifier | caller, |
| FuncIdentifier | callee | ||
| ) |
Definition at line 4326 of file IROptimizer.cpp.
References CallGraph::callerGraph, and CallGraph::callGraph.
Referenced by IROptimizer::buildCallGraph().

| void traverseGraph | ( | ) |
Definition at line 4388 of file IROptimizer.cpp.
Referenced by IROptimizer::buildCallGraph().

| std::map<FuncIdentifier, std::set<FuncIdentifier> > callerGraph |
Definition at line 27 of file IROptimizer.hpp.
Referenced by CallGraph::addCall(), and IROptimizer::performBaseOptimization().
| std::map<FuncIdentifier, std::set<FuncIdentifier> > callGraph |
Definition at line 26 of file IROptimizer.hpp.
Referenced by CallGraph::addCall().
| yoi::indexT entryModuleIndex {} |
Definition at line 24 of file IROptimizer.hpp.
Referenced by IROptimizer::buildCallGraph().
| std::set<FuncIdentifier> entryPoints |
Definition at line 28 of file IROptimizer.hpp.
| std::set<FuncIdentifier> functions |
Definition at line 30 of file IROptimizer.hpp.
Referenced by IROptimizer::buildCallGraph(), and IROptimizer::performBaseOptimization().
| std::set<FuncIdentifier> unreachableFunctions |
Definition at line 29 of file IROptimizer.hpp.
Referenced by IROptimizer::performBaseOptimization().