Use mlir::OpState::operator->() to get to Operation::getAttrs().
This is a preparation step to remove getAttrs() from OpState. PiperOrigin-RevId: 360159716
This commit is contained in:
parent
7c071e8ee6
commit
70ee9369d5
|
@ -424,7 +424,7 @@ struct HloToLhloReduceOpConverter : public BaseOpConversion<mhlo::ReduceOp> {
|
||||||
buffer_args.push_back(InsertAlloc(loc, result, &rewriter));
|
buffer_args.push_back(InsertAlloc(loc, result, &rewriter));
|
||||||
}
|
}
|
||||||
auto new_op = rewriter.create<lmhlo::ReduceOp>(loc, llvm::None, buffer_args,
|
auto new_op = rewriter.create<lmhlo::ReduceOp>(loc, llvm::None, buffer_args,
|
||||||
op.getAttrs());
|
op->getAttrs());
|
||||||
|
|
||||||
// Copy over the operations inside the region.
|
// Copy over the operations inside the region.
|
||||||
rewriter.inlineRegionBefore(op.body(), new_op.body(), new_op.body().end());
|
rewriter.inlineRegionBefore(op.body(), new_op.body(), new_op.body().end());
|
||||||
|
|
Loading…
Reference in New Issue