Skip to content

Commit 24f2eef

Browse files
committed
remove verifier
1 parent aa366ae commit 24f2eef

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2910,34 +2910,6 @@ checkDeclareOperands(Op &op, const mlir::ValueRange &operands,
29102910
assert(dataClauseOptional.has_value() &&
29112911
"declare operands can only be data entry operations which must have "
29122912
"dataClause");
2913-
2914-
// If varPtr has no defining op - there is nothing to check further.
2915-
if (!var.getDefiningOp())
2916-
continue;
2917-
2918-
// Check that the varPtr has a declare attribute.
2919-
auto declareAttribute{
2920-
var.getDefiningOp()->getAttr(mlir::acc::getDeclareAttrName())};
2921-
if (!declareAttribute)
2922-
return op.emitError(
2923-
"expect declare attribute on variable in declare operation");
2924-
2925-
auto declAttr = mlir::cast<mlir::acc::DeclareAttr>(declareAttribute);
2926-
if (declAttr.getDataClause().getValue() != dataClauseOptional.value())
2927-
return op.emitError(
2928-
"expect matching declare attribute on variable in declare operation");
2929-
2930-
// If the variable is marked with implicit attribute, the matching declare
2931-
// data action must also be marked implicit. The reverse is not checked
2932-
// since implicit data action may be inserted to do actions like updating
2933-
// device copy, in which case the variable is not necessarily implicitly
2934-
// declare'd.
2935-
if (declAttr.getImplicit() &&
2936-
declAttr.getImplicit() != acc::getImplicitFlag(operand.getDefiningOp()))
2937-
return op.emitError(
2938-
"implicitness must match between declare op and flag on variable");
2939-
}
2940-
29412913
return success();
29422914
}
29432915

0 commit comments

Comments
 (0)