diff --git a/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td b/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td --- a/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td +++ b/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td @@ -1009,7 +1009,7 @@ }]; let arguments = (ins Optional:$ifCond, - Variadic:$dataOperands, + Variadic:$dataClauseOperands, UnitAttr:$ifPresent); let regions = (region AnyRegion:$region); @@ -1017,7 +1017,7 @@ 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 --- a/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp +++ b/mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp @@ -635,11 +635,11 @@ //===----------------------------------------------------------------------===// 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(operand.getDefiningOp())) return emitError("expect data entry operation as defining op"); return success();