Skip to content

Commit

Permalink
Cleaned up ast2ram transf header slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
azreika committed Nov 12, 2020
1 parent 69547dc commit 97d3b00
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions src/ast2ram/AstToRamTranslator.h
Expand Up @@ -123,22 +123,12 @@ class AstToRamTranslator {
/** Type environment */
const ast::analysis::TypeEnvironment* typeEnv = nullptr;

/** IO Type */
/** Analyses needed */
const ast::analysis::IOTypeAnalysis* ioType = nullptr;

/** Functor analysis */
const ast::analysis::FunctorAnalysis* functorAnalysis = nullptr;

/** Recursive clauses analysis */
const ast::analysis::RecursiveClausesAnalysis* recursiveClauses = nullptr;

/** Auxiliary arity analysis */
const ast::analysis::AuxiliaryArityAnalysis* auxArityAnalysis = nullptr;

/** Relation detail cache analysis */
const ast::analysis::RelationDetailCacheAnalysis* relDetail = nullptr;

/** Polymorphic objects analysis */
const ast::analysis::PolymorphicObjectsAnalysis* polyAnalysis = nullptr;

/** SIPS metric for reordering */
Expand Down Expand Up @@ -168,18 +158,18 @@ class AstToRamTranslator {
/** converts the given relation identifier into a relation name */
static std::string getRelationName(const ast::QualifiedName& id);

// TODO (b-scholz): revisit / refactor so that only one directive is translated
std::vector<std::map<std::string, std::string>> getInputDirectives(const ast::Relation* rel);

// TODO (b-scholz): revisit / refactor so that only one directive is translated
std::vector<std::map<std::string, std::string>> getOutputDirectives(const ast::Relation* rel);

/** Get the corresponding RAM delta relation name for the relation */
std::string getDeltaRelationName(const ast::Relation* rel);

/** Get the corresponding RAM 'new' relation name for the relation */
std::string getNewRelationName(const ast::Relation* rel);

// TODO (b-scholz): revisit / refactor so that only one directive is translated
std::vector<std::map<std::string, std::string>> getInputDirectives(const ast::Relation* rel);

// TODO (b-scholz): revisit / refactor so that only one directive is translated
std::vector<std::map<std::string, std::string>> getOutputDirectives(const ast::Relation* rel);

/** Return a symbol table **/
SymbolTable& getSymbolTable();

Expand Down

0 comments on commit 97d3b00

Please sign in to comment.