Home
last modified time | relevance | path

Searched refs:newValues (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/mlir/lib/IR/
H A DPatternMatch.cpp213 Operation *op, ValueRange newValues, bool *allUsesReplaced, in replaceOpWithIf() argument
215 assert(op->getNumResults() == newValues.size() && in replaceOpWithIf()
223 for (auto it : llvm::zip(op->getResults(), newValues)) { in replaceOpWithIf()
235 void RewriterBase::replaceOpWithinBlock(Operation *op, ValueRange newValues, in replaceOpWithinBlock() argument
237 replaceOpWithIf(op, newValues, allUsesReplaced, [block](OpOperand &use) { in replaceOpWithinBlock()
245 void RewriterBase::replaceOp(Operation *op, ValueRange newValues) { in replaceOp() argument
249 assert(op->getNumResults() == newValues.size() && in replaceOp()
251 op->replaceAllUsesWith(newValues); in replaceOp()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Func/Transforms/
H A DDecomposeCallGraphTypes.h72 SmallVectorImpl<Value> &newValues) -> Optional<LogicalResult> { in wrapDecomposeValueConversionCallback()
74 return callback(builder, loc, derivedType, value, newValues); in wrapDecomposeValueConversionCallback()
/llvm-project-15.0.7/mlir/lib/Bindings/Python/
H A DGlobals.h41 void setDialectSearchPrefixes(std::vector<std::string> newValues) { in setDialectSearchPrefixes() argument
42 dialectSearchPrefixes.swap(newValues); in setDialectSearchPrefixes()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DPatternMatch.h428 replaceOpWithIf(Operation *op, ValueRange newValues, bool *allUsesReplaced,
430 void replaceOpWithIf(Operation *op, ValueRange newValues, in replaceOpWithIf() argument
432 replaceOpWithIf(op, newValues, /*allUsesReplaced=*/nullptr, in replaceOpWithIf()
440 void replaceOpWithinBlock(Operation *op, ValueRange newValues, Block *block,
446 virtual void replaceOp(Operation *op, ValueRange newValues);
/llvm-project-15.0.7/mlir/lib/Transforms/Utils/
H A DDialectConversion.cpp934 void notifyOpReplaced(Operation *op, ValueRange newValues);
1402 ValueRange newValues) { in notifyOpReplaced() argument
1403 assert(newValues.size() == op->getNumResults()); in notifyOpReplaced()
1411 for (auto it : llvm::zip(newValues, op->getResults())) { in notifyOpReplaced()
1501 Operation *op, ValueRange newValues, bool *allUsesReplaced, in replaceOpWithIf() argument
1513 void ConversionPatternRewriter::replaceOp(Operation *op, ValueRange newValues) { in replaceOp() argument
1518 impl->notifyOpReplaced(op, newValues); in replaceOp()
/llvm-project-15.0.7/mlir/include/mlir/Transforms/
H A DDialectConversion.h576 Operation *op, ValueRange newValues, bool *allUsesReplaced,
580 void replaceOp(Operation *op, ValueRange newValues) override;
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DTargetRewrite.cpp830 void replaceOp(mlir::Operation *op, mlir::ValueRange newValues) { in replaceOp() argument
831 op->replaceAllUsesWith(newValues); in replaceOp()