souffle
2.0.2-371-g6315b36
|
A RAM Analysis for finding relations by name. More...
#include <Relation.h>
Public Member Functions | |
const ram::Relation & | lookup (const std::string &name) const |
RelationAnalysis (const char *id) | |
void | run (const TranslationUnit &) override |
Run analysis for a RAM translation unit. More... | |
Public Member Functions inherited from souffle::ram::analysis::Analysis | |
Analysis (const char *id) | |
virtual const std::string & | getName () const |
get name of the analysis More... | |
virtual void | print (std::ostream &) const |
Print the analysis result in HTML format. More... | |
virtual | ~Analysis ()=default |
Static Public Attributes | |
static constexpr const char * | name = "relation-analysis" |
Protected Attributes | |
std::map< std::string, const ram::Relation * > | relationMap |
Protected Attributes inherited from souffle::ram::analysis::Analysis | |
std::string | identifier |
name of analysis instance More... | |
A RAM Analysis for finding relations by name.
Definition at line 36 of file Relation.h.
|
inline |
Definition at line 38 of file Relation.h.
const ram::Relation & souffle::ram::analysis::RelationAnalysis::lookup | ( | const std::string & | name | ) | const |
Definition at line 33 of file Relation.cpp.
References souffle::ram::TranslationUnit::getProgram(), relation, and souffle::ram::visitDepthFirst().
Referenced by souffle::ram::transform::MakeIndexTransformer::makeIndex(), and souffle::ram::transform::ParallelTransformer::parallelizeOperations().
|
overridevirtual |
Run analysis for a RAM translation unit.
Implements souffle::ram::analysis::Analysis.
Definition at line 39 of file Relation.cpp.
|
staticconstexpr |
Definition at line 40 of file Relation.h.
|
protected |
Definition at line 47 of file Relation.h.