Skip to content

Commit

Permalink
[mlir] Remove deprecated methods from mlir::OpState
Browse files Browse the repository at this point in the history
Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D99150
  • Loading branch information
chsigg committed Mar 23, 2021
1 parent f759d51 commit ddae61d
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions mlir/include/mlir/IR/OpDefinition.h
Expand Up @@ -122,27 +122,6 @@ class OpState {
/// The source location the operation was defined or derived from.
Location getLoc() { return state->getLoc(); }

/// Return all of the attributes on this operation.
LLVM_ATTRIBUTE_DEPRECATED(
ArrayRef<NamedAttribute> getAttrs(),
"Use Operation::getAttrs() instead (replace '.' with '->').") {
return state->getAttrs();
}

/// Remove the attribute with the specified name if it exists. Return the
/// attribute that was erased, or nullptr if there was no attribute with such
/// name.
LLVM_ATTRIBUTE_DEPRECATED(
Attribute removeAttr(Identifier name),
"Use Operation::removeAttr() instead (replace '.' with '->').") {
return state->removeAttr(name);
}
LLVM_ATTRIBUTE_DEPRECATED(
Attribute removeAttr(StringRef name),
"Use Operation::removeAttr() instead (replace '.' with '->').") {
return state->removeAttr(Identifier::get(name, getContext()));
}

/// Return true if there are no users of any results of this operation.
bool use_empty() { return state->use_empty(); }

Expand Down

0 comments on commit ddae61d

Please sign in to comment.