|
MLIR 22.0.0git
|
Adjacent DW_OP_LLVM_fragment should be merged into one. More...
#include "mlir/Dialect/LLVMIR/Transforms/DIExpressionLegalization.h"
Public Member Functions | |
| OpIterT | match (OpIterRange operators) const override |
| Checks whether a particular prefix of operators matches this pattern. | |
| SmallVector< OperatorT > | replace (OpIterRange operators) const override |
| Replace the operators with a new list of operators. | |
| Public Member Functions inherited from mlir::LLVM::DIExpressionRewriter::ExprRewritePattern | |
| virtual | ~ExprRewritePattern ()=default |
Additional Inherited Members | |
| Public Types inherited from mlir::LLVM::DIExpressionRewriter::ExprRewritePattern | |
| using | OperatorT = DIExpressionRewriter::OperatorT |
| using | OpIterT = std::deque<OperatorT>::const_iterator |
| using | OpIterRange = llvm::iterator_range<OpIterT> |
Adjacent DW_OP_LLVM_fragment should be merged into one.
E.g. #llvm.di_expression<[ DW_OP_LLVM_fragment(32, 32), DW_OP_LLVM_fragment(32, 64) ]> => #llvm.di_expression<[DW_OP_LLVM_fragment(64, 32)]>
Definition at line 34 of file DIExpressionLegalization.h.
|
overridevirtual |
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.
Implements mlir::LLVM::DIExpressionRewriter::ExprRewritePattern.
Definition at line 20 of file DIExpressionLegalization.cpp.
|
overridevirtual |
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.
Implements mlir::LLVM::DIExpressionRewriter::ExprRewritePattern.
Definition at line 35 of file DIExpressionLegalization.cpp.