[mlir] Remove a number of methods from mlir::OpState that just forward to mlir::Operation. All call sites have been converted in previous changes.

This commit is contained in:
Christian Sigg
2021-01-06 21:26:59 +01:00
parent 221c3b174b
commit badc7606b0
2 changed files with 2 additions and 2 deletions

View File

@@ -334,7 +334,7 @@ public:
LogicalResult matchAndRewrite(AffineYieldOp op,
PatternRewriter &rewriter) const override {
if (isa<scf::ParallelOp>(op.getParentOp())) {
if (isa<scf::ParallelOp>(op->getParentOp())) {
// scf.parallel does not yield any values via its terminator scf.yield but
// models reductions differently using additional ops in its region.
rewriter.replaceOpWithNewOp<scf::YieldOp>(op);

View File

@@ -49,7 +49,7 @@ void ReportShapeFnPass::runOnOperation() {
// Lookup shape function library.
SmallVector<shape::FunctionLibraryOp, 4> libraries;
auto attr = module.getAttr("shape.lib");
auto attr = module->getAttr("shape.lib");
if (attr) {
auto lookup = [&](Attribute attr) {
return cast<shape::FunctionLibraryOp>(