souffle
2.0.2-371-g6315b36
|
Transforms Choice/IndexChoice/IndexScan/Scan into parallel versions. More...
#include <Parallel.h>
Public Member Functions | |
std::string | getName () const override |
@Brief get name of the transformer More... | |
bool | parallelizeOperations (Program &program) |
Parallelize operations. More... | |
Public Member Functions inherited from souffle::ram::transform::Transformer | |
bool | apply (TranslationUnit &translationUnit) |
@Brief apply the transformer to a translation unit @Param translationUnit that will be transformed. More... | |
virtual | ~Transformer ()=default |
Protected Member Functions | |
bool | transform (TranslationUnit &translationUnit) override |
@Brief transform the translation unit / used by apply @Param translationUnit that will be transformed. More... | |
Protected Attributes | |
analysis::RelationAnalysis * | relAnalysis {nullptr} |
Transforms Choice/IndexChoice/IndexScan/Scan into parallel versions.
For example ..
will be rewritten to
Definition at line 50 of file Parallel.h.
|
inlineoverridevirtual |
@Brief get name of the transformer
Implements souffle::ram::transform::Transformer.
Definition at line 52 of file Parallel.h.
bool souffle::ram::transform::ParallelTransformer::parallelizeOperations | ( | Program & | program | ) |
Parallelize operations.
program | Program that is transformed |
Definition at line 36 of file Parallel.cpp.
References souffle::ram::transform::Transformer::apply(), souffle::clone(), souffle::ram::analysis::RelationAnalysis::lookup(), souffle::ram::makeLambdaRamMapper(), rel(), and relAnalysis.
|
inlineoverrideprotectedvirtual |
@Brief transform the translation unit / used by apply @Param translationUnit that will be transformed.
@Return flag reporting whether the RAM program has changed
Implements souffle::ram::transform::Transformer.
Definition at line 64 of file Parallel.h.
|
protected |
Definition at line 68 of file Parallel.h.
Referenced by parallelizeOperations().