Lines Matching refs:rewriterImpl
1426 auto &rewriterImpl = dialectRewriter.getImpl(); in matchAndRewrite() local
1429 assert(!rewriterImpl.currentConversionPattern && in matchAndRewrite()
1432 rewriterImpl.currentConversionPattern, this); in matchAndRewrite()
1436 if (failed(rewriterImpl.remapValues(op->getLoc(), rewriter, in matchAndRewrite()
1577 auto &rewriterImpl = rewriter.getImpl(); in legalize() local
1580 auto &os = rewriterImpl.logger; in legalize()
1598 rewriterImpl.logger, "operation marked legal by the target{0}", in legalize()
1602 rewriterImpl.logger.startLine() << logLineComment; in legalize()
1615 logSuccess(rewriterImpl.logger, in legalize()
1617 rewriterImpl.logger.startLine() << logLineComment; in legalize()
1627 logSuccess(rewriterImpl.logger, "operation was folded"); in legalize()
1628 rewriterImpl.logger.startLine() << logLineComment; in legalize()
1636 logSuccess(rewriterImpl.logger, ""); in legalize()
1637 rewriterImpl.logger.startLine() << logLineComment; in legalize()
1643 logFailure(rewriterImpl.logger, "no matched legalization pattern"); in legalize()
1644 rewriterImpl.logger.startLine() << logLineComment; in legalize()
1652 auto &rewriterImpl = rewriter.getImpl(); in legalizeWithFold() local
1653 RewriterState curState = rewriterImpl.getCurrentState(); in legalizeWithFold()
1656 rewriterImpl.logger.startLine() << "* Fold {\n"; in legalizeWithFold()
1657 rewriterImpl.logger.indent(); in legalizeWithFold()
1664 LLVM_DEBUG(logFailure(rewriterImpl.logger, "unable to fold")); in legalizeWithFold()
1672 for (unsigned i = curState.numCreatedOps, e = rewriterImpl.createdOps.size(); in legalizeWithFold()
1674 Operation *cstOp = rewriterImpl.createdOps[i]; in legalizeWithFold()
1676 LLVM_DEBUG(logFailure(rewriterImpl.logger, in legalizeWithFold()
1679 rewriterImpl.resetState(curState); in legalizeWithFold()
1684 LLVM_DEBUG(logSuccess(rewriterImpl.logger, "")); in legalizeWithFold()
1691 auto &rewriterImpl = rewriter.getImpl(); in legalizeWithPattern() local
1699 RewriterState curState = rewriterImpl.getCurrentState(); in legalizeWithPattern()
1701 LLVM_DEBUG(logFailure(rewriterImpl.logger, "pattern failed to match")); in legalizeWithPattern()
1702 rewriterImpl.resetState(curState); in legalizeWithPattern()
1712 rewriterImpl.resetState(curState); in legalizeWithPattern()
2096 ConversionPatternRewriterImpl &rewriterImpl);
2101 ConversionPatternRewriterImpl &rewriterImpl);
2109 ConversionPatternRewriterImpl &rewriterImpl);
2171 ConversionPatternRewriterImpl &rewriterImpl = rewriter.getImpl(); in convertOperations() local
2174 return rewriterImpl.discardRewrites(), failure(); in convertOperations()
2180 return rewriterImpl.discardRewrites(), failure(); in convertOperations()
2185 rewriterImpl.discardRewrites(); in convertOperations()
2187 rewriterImpl.applyRewrites(); in convertOperations()
2193 ConversionPatternRewriterImpl &rewriterImpl = rewriter.getImpl(); in finalize() local
2196 if (failed(legalizeConvertedArgumentTypes(rewriter, rewriterImpl))) in finalize()
2200 for (unsigned i = 0, e = rewriterImpl.operationsWithChangedResults.size(); in finalize()
2202 unsigned replIdx = rewriterImpl.operationsWithChangedResults[i]; in finalize()
2203 auto &repl = *(rewriterImpl.replacements.begin() + replIdx); in finalize()
2205 Value newValue = rewriterImpl.mapping.lookupOrNull(result); in finalize()
2210 if (failed(legalizeErasedResult(repl.first, result, rewriterImpl))) in finalize()
2223 rewriterImpl))) in finalize()
2228 e = rewriterImpl.operationsWithChangedResults.size(); in finalize()
2236 ConversionPatternRewriterImpl &rewriterImpl) { in legalizeConvertedArgumentTypes() argument
2241 return rewriterImpl.isOpIgnored(user); in legalizeConvertedArgumentTypes()
2248 size_t numCreatedOps = rewriterImpl.createdOps.size(); in legalizeConvertedArgumentTypes()
2249 if (failed(rewriterImpl.argConverter.materializeLiveConversions( in legalizeConvertedArgumentTypes()
2250 rewriterImpl.mapping, rewriter, findLiveUser))) in legalizeConvertedArgumentTypes()
2254 for (int i : llvm::seq<int>(numCreatedOps, rewriterImpl.createdOps.size())) { in legalizeConvertedArgumentTypes()
2255 if (failed(opLegalizer.legalize(rewriterImpl.createdOps[i], rewriter))) { in legalizeConvertedArgumentTypes()
2256 return rewriterImpl.createdOps[i]->emitError() in legalizeConvertedArgumentTypes()
2266 ConversionPatternRewriterImpl &rewriterImpl) { in legalizeErasedResult() argument
2270 return rewriterImpl.isOpIgnored(user); in legalizeErasedResult()
2286 ConversionPatternRewriterImpl &rewriterImpl) { in legalizeChangedResultType() argument
2290 return rewriterImpl.isOpIgnored(user); in legalizeChangedResultType()
2306 size_t numCreatedOps = rewriterImpl.createdOps.size(); in legalizeChangedResultType()
2324 for (int i : llvm::seq<int>(numCreatedOps, rewriterImpl.createdOps.size())) { in legalizeChangedResultType()
2325 if (failed(opLegalizer.legalize(rewriterImpl.createdOps[i], rewriter))) { in legalizeChangedResultType()
2332 rewriterImpl.mapping.map(result, convertedValue); in legalizeChangedResultType()