MLIR: mlir::PatternBenefit Class Reference (original) (raw)
This class represents the benefit of a pattern match in a unitless scheme that ranges from 0 (very little benefit) to 65K. More...
#include "[mlir/IR/PatternMatch.h](PatternMatch%5F8h%5Fsource.html)"
This class represents the benefit of a pattern match in a unitless scheme that ranges from 0 (very little benefit) to 65K.
The most common unit to use here is the "number of operations matched" by the pattern.
This also has a sentinel representation that can be used for patterns that fail to match.
Definition at line 34 of file PatternMatch.h.
mlir::PatternBenefit::PatternBenefit ( ) |
default |
◆ PatternBenefit() [2/3]
PatternBenefit::PatternBenefit |
( |
unsigned |
benefit |
) |
◆ PatternBenefit() [3/3]
mlir::PatternBenefit::PatternBenefit ( const PatternBenefit & ) |
default |
◆ getBenefit()
unsigned short PatternBenefit::getBenefit |
( |
) |
const |
◆ impossibleToMatch()
static PatternBenefit mlir::PatternBenefit::impossibleToMatch ( ) |
inlinestatic |
◆ isImpossibleToMatch()
bool mlir::PatternBenefit::isImpossibleToMatch ( ) const |
inline |
◆ operator!=()
bool mlir::PatternBenefit::operator!= ( const PatternBenefit & rhs) const |
inline |
◆ operator<()
bool mlir::PatternBenefit::operator< ( const PatternBenefit & rhs) const |
inline |
◆ operator<=()
bool mlir::PatternBenefit::operator<= ( const PatternBenefit & rhs) const |
inline |
◆ operator=()
◆ operator==()
bool mlir::PatternBenefit::operator== ( const PatternBenefit & rhs) const |
inline |
◆ operator>()
bool mlir::PatternBenefit::operator> ( const PatternBenefit & rhs) const |
inline |
◆ operator>=()
bool mlir::PatternBenefit::operator>= ( const PatternBenefit & rhs) const |
inline |
The documentation for this class was generated from the following files: