Use mlir::OpState::operator->() to get to methods of mlir::Operation.
This is a preparation step to remove those methods from OpState. PiperOrigin-RevId: 348010582
This commit is contained in:
		
							parent
							
								
									1f244c3e2c
								
							
						
					
					
						commit
						dc7e63f74c
					
				|  | @ -185,8 +185,8 @@ struct HloToLhloCustomCallOpConverter | |||
|     // for args and outputs.
 | ||||
|     const int32_t segments[2] = {static_cast<int32_t>(operands.size()), | ||||
|                                  static_cast<int32_t>(op->getNumResults())}; | ||||
|     lhloOp.setAttr(lhloOp.getOperandSegmentSizeAttr(), | ||||
|                    rewriter.getI32VectorAttr(segments)); | ||||
|     lhloOp->setAttr(lhloOp.getOperandSegmentSizeAttr(), | ||||
|                     rewriter.getI32VectorAttr(segments)); | ||||
| 
 | ||||
|     rewriter.replaceOp(op, ArrayRef<Value>(buffer_args).slice(operands.size())); | ||||
|     return success(); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue