Skip to content

Commit 3f30aeb

Browse files
[mlir][vector] More BAZEL fixes
1 parent 0ce4b86 commit 3f30aeb

File tree

2 files changed

+39
-5
lines changed

2 files changed

+39
-5
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//===-- VectorAttributes.td - Entry point VectorAttr bind --*- tablegen -*-===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef PYTHON_BINDINGS_VECTOR_ATTRIBUTES
10+
#define PYTHON_BINDINGS_VECTOR_ATTRIBUTES
11+
12+
include "mlir/Dialect/Vector/IR/VectorAttributes.td"
13+
14+
#endif

utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,21 +1353,41 @@ gentbl_filegroup(
13531353
tbl_outs = [
13541354
(
13551355
[
1356-
"-gen-python-enum-bindings",
1356+
"-gen-python-op-bindings",
13571357
"-bind-dialect=vector",
13581358
],
1359-
"mlir/dialects/_vector_enum_gen.py",
1359+
"mlir/dialects/_vector_ops_gen.py",
13601360
),
1361+
],
1362+
tblgen = "//mlir:mlir-tblgen",
1363+
td_file = "mlir/dialects/VectorOps.td",
1364+
deps = [
1365+
"//mlir:ArithOpsTdFiles",
1366+
"//mlir:OpBaseTdFiles",
1367+
"//mlir:VectorOpsTdFiles",
1368+
],
1369+
)
1370+
1371+
gentbl_filegroup(
1372+
name = "VectorAttributesPyGen",
1373+
tbl_outs = [
13611374
(
13621375
[
1363-
"-gen-python-op-bindings",
1376+
"-gen-python-enum-bindings",
13641377
"-bind-dialect=vector",
13651378
],
1366-
"mlir/dialects/_vector_ops_gen.py",
1379+
"mlir/dialects/_vector_enum_gen.py",
13671380
),
1381+
# (
1382+
# [
1383+
# "-gen-python-attri-bindings",
1384+
# "-bind-dialect=vector",
1385+
# ],
1386+
# "mlir/dialects/_vector_attribute_gen.py",
1387+
# ),
13681388
],
13691389
tblgen = "//mlir:mlir-tblgen",
1370-
td_file = "mlir/dialects/VectorOps.td",
1390+
td_file = "mlir/dialects/VectorAttributes.td",
13711391
deps = [
13721392
"//mlir:ArithOpsTdFiles",
13731393
"//mlir:OpBaseTdFiles",

0 commit comments

Comments
 (0)