souffle
2.0.2-371-g6315b36
|
Transformation pass which wraps another transformation pass and generates a debug report section for the stage after applying the wrapped transformer, and adds it to the translation unit's debug report. More...
#include <DebugReporter.h>
Public Member Functions | |
DebugReporter * | clone () const override |
DebugReporter (Own< Transformer > wrappedTransformer) | |
void | disableTransformers (const std::set< std::string > &transforms) override |
std::string | getName () const override |
std::vector< Transformer * > | getSubtransformers () const override |
void | setDebugReport () override |
void | setVerbosity (bool verbose) override |
Public Member Functions inherited from souffle::ast::transform::MetaTransformer | |
bool | applySubtransformer (TranslationUnit &translationUnit, Transformer *transformer) |
Public Member Functions inherited from souffle::ast::transform::Transformer | |
bool | apply (TranslationUnit &translationUnit) |
virtual | ~Transformer ()=default |
Private Member Functions | |
void | generateDebugReport (TranslationUnit &tu, const std::string &preTransformDatalog) |
bool | transform (TranslationUnit &translationUnit) override |
Private Attributes | |
Own< Transformer > | wrappedTransformer |
Additional Inherited Members | |
Protected Attributes inherited from souffle::ast::transform::MetaTransformer | |
bool | verbose = false |
Transformation pass which wraps another transformation pass and generates a debug report section for the stage after applying the wrapped transformer, and adds it to the translation unit's debug report.
Definition at line 43 of file DebugReporter.h.
|
inline |
Definition at line 51 of file DebugReporter.h.
Referenced by disableTransformers().
|
inlineoverridevirtual |
Implements souffle::ast::transform::MetaTransformer.
Definition at line 78 of file DebugReporter.h.
|
inlineoverridevirtual |
Implements souffle::ast::transform::MetaTransformer.
Definition at line 66 of file DebugReporter.h.
References souffle::clone(), DebugReporter(), and wrappedTransformer.
|
private |
Definition at line 49 of file DebugReporter.cpp.
Referenced by transform().
|
inlineoverridevirtual |
Implements souffle::ast::transform::Transformer.
Definition at line 74 of file DebugReporter.h.
|
inlineoverridevirtual |
Implements souffle::ast::transform::MetaTransformer.
Definition at line 53 of file DebugReporter.h.
References wrappedTransformer.
|
inlineoverridevirtual |
Implements souffle::ast::transform::MetaTransformer.
Definition at line 57 of file DebugReporter.h.
|
inlineoverridevirtual |
Implements souffle::ast::transform::MetaTransformer.
Definition at line 59 of file DebugReporter.h.
|
overrideprivatevirtual |
Implements souffle::ast::transform::Transformer.
Definition at line 32 of file DebugReporter.cpp.
References generateDebugReport().
|
private |
Definition at line 83 of file DebugReporter.h.
Referenced by disableTransformers(), and getSubtransformers().