souffle
2.0.2-371-g6315b36
ast
transform
RemoveRedundantRelations.h
Go to the documentation of this file.
1
/*
2
* Souffle - A Datalog Compiler
3
* Copyright (c) 2015, Oracle and/or its affiliates. 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 RemoveRedundantRelations.h
12
*
13
***********************************************************************/
14
15
#pragma once
16
17
#include "
ast/TranslationUnit.h
"
18
#include "
ast/transform/Transformer.h
"
19
#include <string>
20
21
namespace
souffle::ast::transform
{
22
23
/**
24
* Transformation pass to remove relations which are redundant (do not contribute to output).
25
*/
26
class
RemoveRedundantRelationsTransformer :
public
Transformer {
27
public
:
28
std::string
getName
()
const override
{
29
return
"RemoveRedundantRelationsTransformer"
;
30
}
31
32
RemoveRedundantRelationsTransformer
*
clone
()
const override
{
33
return
new
RemoveRedundantRelationsTransformer
();
34
}
35
36
private
:
37
bool
transform
(
TranslationUnit
& translationUnit)
override
;
38
};
39
40
}
// namespace souffle::ast::transform
TranslationUnit.h
Transformer.h
souffle::ast::transform::RemoveRedundantRelationsTransformer::transform
bool transform(TranslationUnit &translationUnit) override
Definition:
RemoveRedundantRelations.cpp:28
souffle::ast::TranslationUnit
Translation unit class for the translation pipeline.
Definition:
TranslationUnit.h:51
souffle::ast::transform::RemoveRedundantRelationsTransformer::clone
RemoveRedundantRelationsTransformer * clone() const override
Definition:
RemoveRedundantRelations.h:40
souffle::ast::transform
Definition:
Program.h:45
souffle::ast::transform::RemoveRedundantRelationsTransformer
Transformation pass to remove relations which are redundant (do not contribute to output).
Definition:
RemoveRedundantRelations.h:30
souffle::ast::transform::RemoveRedundantRelationsTransformer::getName
std::string getName() const override
Definition:
RemoveRedundantRelations.h:36
Generated by
1.8.17