Home
last modified time | relevance | path

Searched refs:updateOp (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/mlir/lib/Dialect/OpenACC/IR/
DOpenACC.cpp745 static LogicalResult verify(acc::UpdateOp updateOp) { in verify() argument
747 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()
/external/llvm-project/flang/lib/Lower/
DOpenACC.cpp884 auto updateOp = createSimpleOp<mlir::acc::UpdateOp>( in genACCUpdateOp() local
888 updateOp.asyncAttr(firOpBuilder.getUnitAttr()); in genACCUpdateOp()
890 updateOp.waitAttr(firOpBuilder.getUnitAttr()); in genACCUpdateOp()
892 updateOp.ifPresentAttr(firOpBuilder.getUnitAttr()); in genACCUpdateOp()