[mlir] move lib/Bindings/Python/Attributes.td to include/mlir/Bindings/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
This commit is contained in:
Alex Zinenko 2020-11-23 14:19:07 +01:00
parent 803745b945
commit ee6255d207
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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";

View File

@ -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):