[Mlir-commits] [mlir] [mlir][xegpu] DCE decl in TD (PR #121249)

Maksim Levental llvmlistbot at llvm.org
Fri Dec 27 20:53:13 PST 2024


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

This builder isn't implemented and so the decl causes linker errors in certain build configurations.

>From a06945d5e175fcdc28a8eb75f7169b2a38d5b9b7 Mon Sep 17 00:00:00 2001
From: Maksim Levental <maksim.levental at gmail.com>
Date: Fri, 27 Dec 2024 22:53:00 -0600
Subject: [PATCH] [mlir][xegpu] DCE decl in TD

This builder isn't implemented and so the decl causes linker errors in certain build configurations.
---
 mlir/include/mlir/Dialect/XeGPU/IR/XeGPUAttrs.td | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUAttrs.td b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUAttrs.td
index 2aaa7fd4221ab1..4841f94de75f4a 100644
--- a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUAttrs.td
+++ b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUAttrs.td
@@ -164,11 +164,9 @@ def XeGPU_SGMapAttr : XeGPUAttr<"SGMap", "sg_map"> {
   }];
   let parameters = (ins
     ArrayRefParameter<"uint32_t">:$wi_layout,
-    ArrayRefParameter<"uint32_t">:$wi_data);
+    ArrayRefParameter<"uint32_t">:$wi_data
+  );
 
-  let builders = [
-    AttrBuilder<(ins)>
-  ];
 
   let hasCustomAssemblyFormat = 1;
   let genVerifyDecl = 1;



More information about the Mlir-commits mailing list