26bool LLVM::DbgDeclareOp::canUsesBeRemoved(
38bool LLVM::DbgValueOp::canUsesBeRemoved(
43 if (blockingUses.size() != 1)
46 return (*blockingUses.begin())->get() == getValue();
58 UndefOp::create(builder, getValue().getLoc(), getValue().
getType());
59 getValueMutable().assign(undef);
63bool LLVM::DbgDeclareOp::requiresReplacedValues() {
return true; }
65void LLVM::DbgDeclareOp::visitReplacedValues(
67 for (
auto [op, value] : definitions) {
69 LLVM::DbgValueOp::create(builder, getLoc(), value, getVarInfo(),
75#include "mlir/Dialect/LLVMIR/LLVMDebugIntrinsicOps.cpp.inc"
The main mechanism for performing data layout queries.
This class helps build Operations.
void setInsertionPoint(Block *block, Block::iterator insertPoint)
Set the insertion point to the specified location.
void setInsertionPointAfter(Operation *op)
Sets the insertion point to the node after the specified operation, which will cause subsequent inser...
Include the generated interface declarations.
Type getType(OpFoldResult ofr)
Returns the int type of the integer in ofr.
DeletionKind
Returned by operation promotion logic requesting the deletion of an operation.
@ Keep
Keep the operation after promotion.
@ Delete
Delete the operation after promotion.