Is there a utility function to dump a set of newly created Operators through rewriter.createOrFold while doing a Dialect Conversion in matchAndRewrite()
I can dump the individual operations and there operand/result using utility function
https://github.com/llvm/llvm-project/blob/main/mlir/test/lib/IR/TestPrintDefUse.cpp But I want to dump the entire IR of newly created instructions starting from the firstly created instruction to ensure that the use-def generated chain is as per expectation for the new set of instructions being created in matchAndRewrite() .
With old operation which came as argument to matchAndRewrite() it prints all the instructions in the Block .
llvm::dbgs() << "New Op " << "\n";
auto walkFnNewOp = [&](Operation *walkedOp) {
walkedOp->dump();
};
for (Region ®ion : definingOp->getRegions())
region.walk(walkFnNewOp);
But on newly created Value object but it didn't dump any thing , probably there is no region with newly created Value .