[Mlir-commits] [mlir] [mlir][python] Fixup the constantTypes of pdl.TypesOp (PR #75812)
Jiefeng Wang
llvmlistbot at llvm.org
Mon Dec 18 07:32:14 PST 2023
https://github.com/jiefwo created https://github.com/llvm/llvm-project/pull/75812
None
>From 613e7890f4293a1e8ef07eebca4e7d4288c72c06 Mon Sep 17 00:00:00 2001
From: Jiefeng Wang <wangjiefeng at huawei.com>
Date: Mon, 18 Dec 2023 15:17:49 +0000
Subject: [PATCH] [mlir][python] Fixup the constantTypes of pdl.TypesOp
---
mlir/python/mlir/dialects/pdl.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/mlir/python/mlir/dialects/pdl.py b/mlir/python/mlir/dialects/pdl.py
index 90d7d706238e64..800be6d91b7530 100644
--- a/mlir/python/mlir/dialects/pdl.py
+++ b/mlir/python/mlir/dialects/pdl.py
@@ -216,7 +216,5 @@ def __init__(
loc=None,
ip=None,
):
- if constantTypes is None:
- constantTypes = []
result = pdl.RangeType.get(pdl.TypeType.get())
super().__init__(result, constantTypes=constantTypes, loc=loc, ip=ip)
More information about the Mlir-commits
mailing list