|
NeoN
A framework for CFD software
|
Abstract base for DSL expression optimizers. More...
#include <optimizer.hpp>
Public Member Functions | |
| virtual | ~Optimizer ()=default |
| virtual ExpressionType | optimize (const ExpressionType &expr) const =0 |
Return an optimized copy of expr. | |
Abstract base for DSL expression optimizers.
Subclasses inspect an expression and return a semantically equivalent but potentially more efficient one (e.g. by replacing two operators with a single fused kernel).
| ExpressionType | The DSL expression type being optimized. |
Definition at line 27 of file optimizer.hpp.
|
virtualdefault |
|
pure virtual |
Return an optimized copy of expr.
Implementations must not mutate expr; they return a new expression.
Implemented in NeoN::dsl::DivLapOptimizer< ExpressionType >.