MLIR 23.0.0git
MemorySlot.cpp File Reference

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 OperationreplaceWithNewResults (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.

Function Documentation

◆ replaceWithNewResults()

Operation * replaceWithNewResults ( RewriterBase & rewriter,
Operation * op,
TypeRange resultTypes )
static

◆ updateTerminator()

template<typename TermTy>
void updateTerminator ( Block * block,
Value defaultReachingDef,
const llvm::DenseMap< Block *, Value > & reachingAtBlockEnd )
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().