Searched refs:updateOp (Results 1 – 2 of 2) sorted by relevance
745 static LogicalResult verify(acc::UpdateOp updateOp) { in verify() argument747 if (updateOp.hostOperands().size() == 0 && in verify()748 updateOp.deviceOperands().size() == 0) in verify()749 return updateOp.emitError("at least one value must be present in" in verify()754 if (updateOp.asyncOperand() && updateOp.async()) in verify()755 return updateOp.emitError("async attribute cannot appear with " in verify()760 if (updateOp.waitOperands().size() > 0 && updateOp.wait()) in verify()761 return updateOp.emitError("wait attribute cannot appear with waitOperands"); in verify()763 if (updateOp.waitDevnum() && updateOp.waitOperands().size() == 0) in verify()764 return updateOp.emitError("wait_devnum cannot appear without waitOperands"); in verify()
884 auto updateOp = createSimpleOp<mlir::acc::UpdateOp>( in genACCUpdateOp() local888 updateOp.asyncAttr(firOpBuilder.getUnitAttr()); in genACCUpdateOp()890 updateOp.waitAttr(firOpBuilder.getUnitAttr()); in genACCUpdateOp()892 updateOp.ifPresentAttr(firOpBuilder.getUnitAttr()); in genACCUpdateOp()