[Mlir-commits] [mlir] ddae61d - [mlir] Remove deprecated methods from mlir::OpState

Christian Sigg llvmlistbot at llvm.org
Tue Mar 23 03:08:17 PDT 2021


Author: Christian Sigg
Date: 2021-03-23T11:08:04+01:00
New Revision: ddae61dfef4833d3200fdf15788869a2127a7ee0

URL: https://github.com/llvm/llvm-project/commit/ddae61dfef4833d3200fdf15788869a2127a7ee0
DIFF: https://github.com/llvm/llvm-project/commit/ddae61dfef4833d3200fdf15788869a2127a7ee0.diff

LOG: [mlir] Remove deprecated methods from mlir::OpState

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D99150

Added: 
    

Modified: 
    mlir/include/mlir/IR/OpDefinition.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/OpDefinition.h b/mlir/include/mlir/IR/OpDefinition.h
index 145b4cd989e5..b27e1e0e4a78 100644
--- a/mlir/include/mlir/IR/OpDefinition.h
+++ b/mlir/include/mlir/IR/OpDefinition.h
@@ -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(); }
 


        


More information about the Mlir-commits mailing list