Skip to content

Commit

Permalink
[mlir] move lib/Bindings/Python/Attributes.td to include/mlir/Binding…
Browse files Browse the repository at this point in the history
…s/Python

This file is intended to be included by other files, including
out-of-tree dialects, and makes more sense in `include` than in `lib`.

Depends On D91652

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D91961
  • Loading branch information
ftynse committed Nov 24, 2020
1 parent 803745b commit ee6255d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion mlir/lib/Bindings/Python/StandardOps.td
Expand Up @@ -14,7 +14,7 @@
#ifndef PYTHON_BINDINGS_STANDARD_OPS
#define PYTHON_BINDINGS_STANDARD_OPS

include "mlir/Bindings/Python/Attributes.td"
include "mlir/Dialect/StandardOps/IR/Ops.td"
include "Attributes.td"

#endif
2 changes: 1 addition & 1 deletion mlir/test/Bindings/Python/python_test_ops.td
Expand Up @@ -9,8 +9,8 @@
#ifndef PYTHON_TEST_OPS
#define PYTHON_TEST_OPS

include "mlir/Bindings/Python/Attributes.td"
include "mlir/IR/OpBase.td"
include "../../../lib/Bindings/Python/Attributes.td"

def Python_Test_Dialect : Dialect {
let name = "python_test";
Expand Down
4 changes: 2 additions & 2 deletions mlir/test/mlir-tblgen/op-python-bindings.td
@@ -1,7 +1,7 @@
// RUN: mlir-tblgen -gen-python-op-bindings -bind-dialect=test -I %S/../../include -I %S/../../lib/Bindings/Python %s | FileCheck %s
// RUN: mlir-tblgen -gen-python-op-bindings -bind-dialect=test -I %S/../../include %s | FileCheck %s

include "mlir/IR/OpBase.td"
include "Attributes.td"
include "mlir/Bindings/Python/Attributes.td"

// CHECK: @_cext.register_dialect
// CHECK: class _Dialect(_ir.Dialect):
Expand Down

0 comments on commit ee6255d

Please sign in to comment.