From 6f271e921ba48f4c4fa54bbd2c7a4c548ca5e59e Mon Sep 17 00:00:00 2001 From: Christian Sigg Date: Mon, 14 Dec 2020 08:34:39 +0100 Subject: [PATCH] [mlir] Remove methods from mlir::OpState that just forward to mlir::Operation. All call sites have been converted in previous changes. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D93176 --- mlir/include/mlir/IR/OpDefinition.h | 51 ------------------------------------- 1 file changed, 51 deletions(-) diff --git a/mlir/include/mlir/IR/OpDefinition.h b/mlir/include/mlir/IR/OpDefinition.h index b200f7c..2edc48d 100644 --- a/mlir/include/mlir/IR/OpDefinition.h +++ b/mlir/include/mlir/IR/OpDefinition.h @@ -108,27 +108,6 @@ public: /// Return the operation that this refers to. Operation *getOperation() { return state; } - /// Return the dialect that this refers to. - Dialect *getDialect() { return getOperation()->getDialect(); } - - /// Return the parent Region of this operation. - Region *getParentRegion() { return getOperation()->getParentRegion(); } - - /// Returns the closest surrounding operation that contains this operation - /// or nullptr if this is a top-level operation. - Operation *getParentOp() { return getOperation()->getParentOp(); } - - /// Return the closest surrounding parent operation that is of type 'OpTy'. - template OpTy getParentOfType() { - return getOperation()->getParentOfType(); - } - - /// Returns the closest surrounding parent operation with trait `Trait`. - template