CIRCT
20.0.0git
|
#include <Reduction.h>
Public Member Functions | |
template<typename R , unsigned Benefit, typename... Args> | |
void | add (Args &&...args) |
void | filter (const std::function< bool(const Reduction &)> &pred) |
void | sortByBenefit () |
size_t | size () const |
Reduction & | operator[] (size_t idx) const |
Private Attributes | |
SmallVector< std::pair< std::unique_ptr< Reduction >, unsigned > > | reducePatternsWithBenefit |
Definition at line 116 of file Reduction.h.
|
inline |
Definition at line 119 of file Reduction.h.
References reducePatternsWithBenefit.
void ReducePatternSet::filter | ( | const std::function< bool(const Reduction &)> & | pred | ) |
Definition at line 66 of file Reduction.cpp.
References reducePatternsWithBenefit.
Reduction & ReducePatternSet::operator[] | ( | size_t | idx | ) | const |
Definition at line 86 of file Reduction.cpp.
References reducePatternsWithBenefit.
size_t ReducePatternSet::size | ( | ) | const |
Definition at line 82 of file Reduction.cpp.
References reducePatternsWithBenefit.
Referenced by esiaccel.types.ArrayType::bit_width(), esiaccel.types.ArrayType::deserialize(), and esiaccel.types.ArrayType::is_valid().
void ReducePatternSet::sortByBenefit | ( | ) |
Definition at line 75 of file Reduction.cpp.
References reducePatternsWithBenefit.
|
private |
Definition at line 132 of file Reduction.h.
Referenced by add(), filter(), operator[](), size(), and sortByBenefit().