souffle  2.0.2-371-g6315b36
InlineRelations.h
Go to the documentation of this file.
1 /*
2  * Souffle - A Datalog Compiler
3  * Copyright (c) 2018, The Souffle Developers. All rights reserved
4  * Licensed under the Universal Permissive License v 1.0 as shown at:
5  * - https://opensource.org/licenses/UPL
6  * - <souffle root>/licenses/SOUFFLE-UPL.txt
7  */
8 
9 /************************************************************************
10  *
11  * @file InlineRelations.h
12  *
13  * Transformation pass to inline marked relations
14  *
15  ***********************************************************************/
16 
17 #pragma once
18 
19 #include "ast/TranslationUnit.h"
21 #include <string>
22 
23 namespace souffle::ast::transform {
24 
25 /**
26  * Transformation pass to inline marked relations
27  */
28 class InlineRelationsTransformer : public Transformer {
29 public:
30  std::string getName() const override {
31  return "InlineRelationsTransformer";
32  }
33 
34  InlineRelationsTransformer* clone() const override {
35  return new InlineRelationsTransformer();
36  }
37 
38 private:
39  bool transform(TranslationUnit& translationUnit) override;
40 };
41 
42 } // namespace souffle::ast::transform
TranslationUnit.h
souffle::ast::transform::InlineRelationsTransformer
Transformation pass to inline marked relations.
Definition: InlineRelations.h:34
souffle::ast::transform::InlineRelationsTransformer::transform
bool transform(TranslationUnit &translationUnit) override
Definition: InlineRelations.cpp:1002
Transformer.h
souffle::ast::transform::InlineRelationsTransformer::clone
InlineRelationsTransformer * clone() const override
Definition: InlineRelations.h:46
souffle::ast::TranslationUnit
Translation unit class for the translation pipeline.
Definition: TranslationUnit.h:51
souffle::ast::transform
Definition: Program.h:45
souffle::ast::transform::InlineRelationsTransformer::getName
std::string getName() const override
Definition: InlineRelations.h:42