mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
[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:
@@ -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);
|
||||
|
||||
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user