[Mlir-commits] [mlir] [mlir][arith] DCE getPredicateByName (PR #121165)

Maksim Levental llvmlistbot at llvm.org
Thu Dec 26 14:56:27 PST 2024


https://github.com/makslevental created https://github.com/llvm/llvm-project/pull/121165

This is dead code (no impls or uses anywhere in the code base) that causes linker errors in some build configurations.

>From 13e8e143bd76619d837eb5284162c435db413cae Mon Sep 17 00:00:00 2001
From: Maksim Levental <maksim.levental at gmail.com>
Date: Thu, 26 Dec 2024 14:55:59 -0800
Subject: [PATCH] [mlir][arith] DCE getPredicateByName

This is dead code (no impls or uses anywhere in the code base) that causes linker errors in some build configurations.
---
 mlir/include/mlir/Dialect/Arith/IR/ArithOps.td | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td b/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
index 2f71caaa593a6c..0722ff68d890de 100644
--- a/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
+++ b/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
@@ -1499,10 +1499,6 @@ def Arith_CmpIOp
                        SignlessIntegerLikeOfAnyRank:$lhs,
                        SignlessIntegerLikeOfAnyRank:$rhs);
 
-  let extraClassDeclaration = [{
-    static arith::CmpIPredicate getPredicateByName(StringRef name);
-  }];
-
   let hasFolder = 1;
   let hasCanonicalizer = 1;
 }
@@ -1546,10 +1542,6 @@ def Arith_CmpFOp : Arith_CompareOp<"cmpf",
                        DefaultValuedAttr<
                          Arith_FastMathAttr, "::mlir::arith::FastMathFlags::none">:$fastmath);
 
-  let extraClassDeclaration = [{
-    static arith::CmpFPredicate getPredicateByName(StringRef name);
-  }];
-
   let hasFolder = 1;
   let hasCanonicalizer = 1;
   let assemblyFormat = [{ $predicate `,` $lhs `,` $rhs (`fastmath` `` $fastmath^)?



More information about the Mlir-commits mailing list