From 279b0a91aa9a59782faddc65634a2035801cef3d Mon Sep 17 00:00:00 2001 From: Christian Sigg Date: Tue, 12 Sep 2023 03:37:50 -0700 Subject: [PATCH] Switch MLIR dialects to use properties. PiperOrigin-RevId: 564668382 --- include/tfrt/basic_kernels/opdefs/tfrt_base.td | 1 - include/tfrt/tensor/opdefs/coo_host_tensor.td | 1 - include/tfrt/tensor/opdefs/dense_host_tensor.td | 1 - include/tfrt/tensor/opdefs/dense_host_tensor_sync.td | 1 - include/tfrt/tensor/opdefs/host_tensor.td | 2 +- include/tfrt/tensor/opdefs/tensor.td | 1 - include/tfrt/tensor/opdefs/tensor_shape_base.td | 1 - include/tfrt/tensor/opdefs/tensor_shape_sync.td | 1 - include/tfrt/test_kernels/opdefs/test_kernels.td | 1 - include/tfrt/test_kernels/opdefs/test_kernels_sync.td | 1 - 10 files changed, 1 insertion(+), 10 deletions(-) diff --git a/include/tfrt/basic_kernels/opdefs/tfrt_base.td b/include/tfrt/basic_kernels/opdefs/tfrt_base.td index f705b8524cf..e22e05608e6 100644 --- a/include/tfrt/basic_kernels/opdefs/tfrt_base.td +++ b/include/tfrt/basic_kernels/opdefs/tfrt_base.td @@ -35,7 +35,6 @@ def TFRT_Dialect : Dialect { }]; let cppNamespace = "::tfrt::compiler"; - let usePropertiesForAttributes = 0; } def TFRT_ChainType : diff --git a/include/tfrt/tensor/opdefs/coo_host_tensor.td b/include/tfrt/tensor/opdefs/coo_host_tensor.td index 7e889ab47b5..d6542922f42 100644 --- a/include/tfrt/tensor/opdefs/coo_host_tensor.td +++ b/include/tfrt/tensor/opdefs/coo_host_tensor.td @@ -35,7 +35,6 @@ def COO_Dialect : Dialect { }]; let cppNamespace = "tfrt::coo"; - let usePropertiesForAttributes = 0; } // Base class for the operation in this dialect. diff --git a/include/tfrt/tensor/opdefs/dense_host_tensor.td b/include/tfrt/tensor/opdefs/dense_host_tensor.td index ed786348346..1d650ebc687 100644 --- a/include/tfrt/tensor/opdefs/dense_host_tensor.td +++ b/include/tfrt/tensor/opdefs/dense_host_tensor.td @@ -37,7 +37,6 @@ def DHT_Dialect : Dialect { }]; let cppNamespace = "tfrt::dht"; - let usePropertiesForAttributes = 0; } // Base class for the operation in this dialect diff --git a/include/tfrt/tensor/opdefs/dense_host_tensor_sync.td b/include/tfrt/tensor/opdefs/dense_host_tensor_sync.td index d33d46f164e..a1d51a5ad3f 100644 --- a/include/tfrt/tensor/opdefs/dense_host_tensor_sync.td +++ b/include/tfrt/tensor/opdefs/dense_host_tensor_sync.td @@ -37,7 +37,6 @@ def DHT_Sync_Dialect : Dialect { }]; let cppNamespace = "tfrt::dht"; - let usePropertiesForAttributes = 0; } // Base class for the operation in this dialect diff --git a/include/tfrt/tensor/opdefs/host_tensor.td b/include/tfrt/tensor/opdefs/host_tensor.td index da22a12f1eb..d111914fcb6 100644 --- a/include/tfrt/tensor/opdefs/host_tensor.td +++ b/include/tfrt/tensor/opdefs/host_tensor.td @@ -36,7 +36,7 @@ def HostTensor_Dialect : Dialect { }]; let cppNamespace = "::tfrt::ht"; - let usePropertiesForAttributes = 0; + } //===----------------------------------------------------------------------===// diff --git a/include/tfrt/tensor/opdefs/tensor.td b/include/tfrt/tensor/opdefs/tensor.td index db6ba80f6e1..8c4e7c7ebca 100644 --- a/include/tfrt/tensor/opdefs/tensor.td +++ b/include/tfrt/tensor/opdefs/tensor.td @@ -36,7 +36,6 @@ def Tensor_Dialect : Dialect { }]; let cppNamespace = "::tfrt::t"; - let usePropertiesForAttributes = 0; } //===----------------------------------------------------------------------===// diff --git a/include/tfrt/tensor/opdefs/tensor_shape_base.td b/include/tfrt/tensor/opdefs/tensor_shape_base.td index d4bc002847b..e2265a31d3d 100644 --- a/include/tfrt/tensor/opdefs/tensor_shape_base.td +++ b/include/tfrt/tensor/opdefs/tensor_shape_base.td @@ -35,7 +35,6 @@ def TensorShapeDialect : Dialect { let cppNamespace = "::tfrt::ts"; let useDefaultTypePrinterParser = 1; - let usePropertiesForAttributes = 0; } // Type definition. diff --git a/include/tfrt/tensor/opdefs/tensor_shape_sync.td b/include/tfrt/tensor/opdefs/tensor_shape_sync.td index ac7fdf62c25..ed7f9a3daee 100644 --- a/include/tfrt/tensor/opdefs/tensor_shape_sync.td +++ b/include/tfrt/tensor/opdefs/tensor_shape_sync.td @@ -37,7 +37,6 @@ def TensorShapeSyncDialect : Dialect { }]; let cppNamespace = "::tfrt::ts_sync"; - let usePropertiesForAttributes = 0; } // Base class for the operation in this dialect diff --git a/include/tfrt/test_kernels/opdefs/test_kernels.td b/include/tfrt/test_kernels/opdefs/test_kernels.td index aba09f657d7..8df6e07ac7a 100644 --- a/include/tfrt/test_kernels/opdefs/test_kernels.td +++ b/include/tfrt/test_kernels/opdefs/test_kernels.td @@ -35,7 +35,6 @@ def Test_Dialect : Dialect { }]; let cppNamespace = "::tfrt::test"; - let usePropertiesForAttributes = 0; } def ProtoExampleType : OpaqueType<"proto", "example", "!proto.example type">; diff --git a/include/tfrt/test_kernels/opdefs/test_kernels_sync.td b/include/tfrt/test_kernels/opdefs/test_kernels_sync.td index fb68f36dfdd..d5ee4c43f4d 100644 --- a/include/tfrt/test_kernels/opdefs/test_kernels_sync.td +++ b/include/tfrt/test_kernels/opdefs/test_kernels_sync.td @@ -36,7 +36,6 @@ def Test_Sync_Dialect : Dialect { }]; let cppNamespace = "::tfrt::test_sync"; - let usePropertiesForAttributes = 0; } #endif // TEST_SYNC_OPS