|
MLIR 22.0.0git
|
#include "mlir/Dialect/LLVMIR/Transforms/DIExpressionRewriter.h"
Public Types | |
| using | OperatorT = DIExpressionRewriter::OperatorT |
| using | OpIterT = std::deque<OperatorT>::const_iterator |
| using | OpIterRange = llvm::iterator_range<OpIterT> |
Public Member Functions | |
| virtual | ~ExprRewritePattern ()=default |
| virtual OpIterT | match (OpIterRange) const =0 |
| Checks whether a particular prefix of operators matches this pattern. | |
| virtual SmallVector< OperatorT > | replace (OpIterRange) const =0 |
| Replace the operators with a new list of operators. | |
Definition at line 31 of file DIExpressionRewriter.h.
| using mlir::LLVM::DIExpressionRewriter::ExprRewritePattern::OperatorT = DIExpressionRewriter::OperatorT |
Definition at line 33 of file DIExpressionRewriter.h.
| using mlir::LLVM::DIExpressionRewriter::ExprRewritePattern::OpIterRange = llvm::iterator_range<OpIterT> |
Definition at line 35 of file DIExpressionRewriter.h.
| using mlir::LLVM::DIExpressionRewriter::ExprRewritePattern::OpIterT = std::deque<OperatorT>::const_iterator |
Definition at line 34 of file DIExpressionRewriter.h.
|
virtualdefault |
|
pure virtual |
Checks whether a particular prefix of operators matches this pattern.
The provided argument is guaranteed non-empty. Return the iterator after the last matched element.
Implemented in mlir::LLVM::MergeFragments.
|
pure virtual |
Replace the operators with a new list of operators.
The provided argument is guaranteed to be the same length as returned by the match function.
Implemented in mlir::LLVM::MergeFragments.