Skip to content

[mlir] DCE RegisteredOperationName::parseAssembly decl #121730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

makslevental
Copy link
Contributor

This method has no impl.

@llvmbot llvmbot added mlir:core MLIR Core Infrastructure mlir labels Jan 6, 2025
@llvmbot
Copy link
Member

llvmbot commented Jan 6, 2025

@llvm/pr-subscribers-mlir-core

@llvm/pr-subscribers-mlir

Author: Maksim Levental (makslevental)

Changes

This method has no impl.


Full diff: https://github.com/llvm/llvm-project/pull/121730.diff

1 Files Affected:

  • (modified) mlir/include/mlir/IR/OperationSupport.h (-3)
diff --git a/mlir/include/mlir/IR/OperationSupport.h b/mlir/include/mlir/IR/OperationSupport.h
index ef5b8b178fbc79..f4cc5baa633556 100644
--- a/mlir/include/mlir/IR/OperationSupport.h
+++ b/mlir/include/mlir/IR/OperationSupport.h
@@ -693,9 +693,6 @@ class RegisteredOperationName : public OperationName {
   /// Return the dialect this operation is registered to.
   Dialect &getDialect() const { return *getImpl()->getDialect(); }
 
-  /// Use the specified object to parse this ops custom assembly format.
-  ParseResult parseAssembly(OpAsmParser &parser, OperationState &result) const;
-
   /// Represent the operation name as an opaque pointer. (Used to support
   /// PointerLikeTypeTraits).
   static RegisteredOperationName getFromOpaquePointer(const void *pointer) {

@makslevental makslevental requested a review from zero9178 January 6, 2025 04:41
Copy link
Member

@zero9178 zero9178 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

For anyone else curious, the function became dead and its definition removed in 0441272#diff-423dee199977d7fe0b98fad6b07722057099f3e0815011d0bc3a65d13512a797L761

@makslevental makslevental merged commit 0c1cf75 into main Jan 6, 2025
11 checks passed
@makslevental makslevental deleted the users/makslevental/fix-operation-support branch January 6, 2025 12:13
paulhuggett pushed a commit to paulhuggett/llvm-project that referenced this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mlir:core MLIR Core Infrastructure mlir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants