|
MLIR 23.0.0git
|
Go to the source code of this file.
Functions | |
| template<typename TermTy> | |
| static void | updateTerminator (Block *block, Value defaultReachingDef, const llvm::DenseMap< Block *, Value > &reachingAtBlockEnd) |
| Adds the corresponding reaching definition to the terminator of the block if the terminator is of the provided type. | |
| static Operation * | replaceWithNewResults (RewriterBase &rewriter, Operation *op, TypeRange resultTypes) |
| Creates a shallow copy of an operation with new result types, moving the regions out of the original operation and deleting the original operation. | |
|
static |
Creates a shallow copy of an operation with new result types, moving the regions out of the original operation and deleting the original operation.
Definition at line 39 of file MemorySlot.cpp.
References mlir::cloneWithoutRegions(), mlir::RewriterBase::eraseOp(), mlir::RewriterBase::finalizeOpModification(), mlir::Operation::getNumRegions(), mlir::Operation::getOperands(), mlir::Operation::getRegion(), mlir::Operation::getResults(), mlir::RewriterBase::replaceAllOpUsesWith(), mlir::OpBuilder::setInsertionPoint(), mlir::RewriterBase::startOpModification(), and mlir::Region::takeBody().
|
static |
Adds the corresponding reaching definition to the terminator of the block if the terminator is of the provided type.
Definition at line 23 of file MemorySlot.cpp.
References mlir::Operation::getNumOperands(), mlir::Block::getTerminator(), and mlir::Operation::insertOperands().