[Mlir-commits] [mlir] 20ba5c6 - [mlir][openacc] Update host_data data operands list name
Razvan Lupusoru
llvmlistbot at llvm.org
Wed Jun 21 14:25:53 PDT 2023
Author: Razvan Lupusoru
Date: 2023-06-21T14:25:31-07:00
New Revision: 20ba5c61ea582abec047c912334952d3afc698a6
URL: https://github.com/llvm/llvm-project/commit/20ba5c61ea582abec047c912334952d3afc698a6
DIFF: https://github.com/llvm/llvm-project/commit/20ba5c61ea582abec047c912334952d3afc698a6.diff
LOG: [mlir][openacc] Update host_data data operands list name
For all other compute and data constructs, the data operands list
is named `dataClauseOperands`. Update `acc.host_data` to be
consistent with this naming.
Reviewed By: clementval
Differential Revision: https://reviews.llvm.org/D153425
Added:
Modified:
mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td b/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
index 8a31d438478b4..e5b017f4d3c27 100644
--- a/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
+++ b/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
@@ -1009,7 +1009,7 @@ def OpenACC_HostDataOp : OpenACC_Op<"host_data", [AttrSizedOperandSegments]> {
}];
let arguments = (ins Optional<I1>:$ifCond,
- Variadic<OpenACC_PointerLikeTypeInterface>:$dataOperands,
+ Variadic<OpenACC_PointerLikeTypeInterface>:$dataClauseOperands,
UnitAttr:$ifPresent);
let regions = (region AnyRegion:$region);
@@ -1017,7 +1017,7 @@ def OpenACC_HostDataOp : OpenACC_Op<"host_data", [AttrSizedOperandSegments]> {
let assemblyFormat = [{
oilist(
`if` `(` $ifCond `)`
- | `dataOperands` `(` $dataOperands `:` type($dataOperands) `)`
+ | `dataOperands` `(` $dataClauseOperands `:` type($dataClauseOperands) `)`
)
$region attr-dict-with-keyword
}];
diff --git a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
index be3384d132332..48ae0c96f9f4e 100644
--- a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
+++ b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
@@ -635,11 +635,11 @@ LogicalResult acc::KernelsOp::verify() {
//===----------------------------------------------------------------------===//
LogicalResult acc::HostDataOp::verify() {
- if (getDataOperands().empty())
+ if (getDataClauseOperands().empty())
return emitError("at least one operand must appear on the host_data "
"operation");
- for (mlir::Value operand : getDataOperands())
+ for (mlir::Value operand : getDataClauseOperands())
if (!mlir::isa<acc::UseDeviceOp>(operand.getDefiningOp()))
return emitError("expect data entry operation as defining op");
return success();
More information about the Mlir-commits
mailing list