diff options
author | Markus Böck <markus.boeck02@gmail.com> | 2023-01-15 14:52:05 +0100 |
---|---|---|
committer | Markus Böck <markus.boeck02@gmail.com> | 2023-01-16 11:48:30 +0100 |
commit | 355c547908aaac613e5615e91aeb37676e2f5129 (patch) | |
tree | 3dfdc4c597870aa7ef8afce7cc32fafa0f454b4d /mlir/examples | |
parent | 28de5f99bbe10d8982500abf5df24a80ab1bae79 (diff) | |
download | llvm-355c547908aaac613e5615e91aeb37676e2f5129.tar.gz |
[mlir][NFC] Set `useFoldAPI` to `kEmitRawAttributesFolder` value for some dialects missed previously
Found these while working on https://reviews.llvm.org/D141604. These were previously not found due to the old implementation only emitting warnings if an Op has a `fold`.
Changing these values both avoid the deprecation warning and if new `fold`s were added to ops of these dialects, that they are already using the new API.
Differential Revision: https://reviews.llvm.org/D141795
Diffstat (limited to 'mlir/examples')
-rw-r--r-- | mlir/examples/toy/Ch2/include/toy/Ops.td | 1 | ||||
-rw-r--r-- | mlir/examples/toy/Ch3/include/toy/Ops.td | 1 | ||||
-rw-r--r-- | mlir/examples/toy/Ch4/include/toy/Ops.td | 1 | ||||
-rw-r--r-- | mlir/examples/toy/Ch5/include/toy/Ops.td | 1 | ||||
-rw-r--r-- | mlir/examples/toy/Ch6/include/toy/Ops.td | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/mlir/examples/toy/Ch2/include/toy/Ops.td b/mlir/examples/toy/Ch2/include/toy/Ops.td index 4e2fb9ec397e..08514d4fad0b 100644 --- a/mlir/examples/toy/Ch2/include/toy/Ops.td +++ b/mlir/examples/toy/Ch2/include/toy/Ops.td @@ -23,6 +23,7 @@ include "mlir/Interfaces/SideEffectInterfaces.td" def Toy_Dialect : Dialect { let name = "toy"; let cppNamespace = "::mlir::toy"; + let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for toy dialect operations. This operation inherits from the base diff --git a/mlir/examples/toy/Ch3/include/toy/Ops.td b/mlir/examples/toy/Ch3/include/toy/Ops.td index 1a4e6a1a29ad..0836e3c37b52 100644 --- a/mlir/examples/toy/Ch3/include/toy/Ops.td +++ b/mlir/examples/toy/Ch3/include/toy/Ops.td @@ -22,6 +22,7 @@ include "mlir/Interfaces/SideEffectInterfaces.td" def Toy_Dialect : Dialect { let name = "toy"; let cppNamespace = "::mlir::toy"; + let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for toy dialect operations. This operation inherits from the base diff --git a/mlir/examples/toy/Ch4/include/toy/Ops.td b/mlir/examples/toy/Ch4/include/toy/Ops.td index cbece4767d15..dcf999685ce0 100644 --- a/mlir/examples/toy/Ch4/include/toy/Ops.td +++ b/mlir/examples/toy/Ch4/include/toy/Ops.td @@ -25,6 +25,7 @@ include "toy/ShapeInferenceInterface.td" def Toy_Dialect : Dialect { let name = "toy"; let cppNamespace = "::mlir::toy"; + let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for toy dialect operations. This operation inherits from the base diff --git a/mlir/examples/toy/Ch5/include/toy/Ops.td b/mlir/examples/toy/Ch5/include/toy/Ops.td index 70e482dd76eb..d6675b7ded92 100644 --- a/mlir/examples/toy/Ch5/include/toy/Ops.td +++ b/mlir/examples/toy/Ch5/include/toy/Ops.td @@ -25,6 +25,7 @@ include "toy/ShapeInferenceInterface.td" def Toy_Dialect : Dialect { let name = "toy"; let cppNamespace = "::mlir::toy"; + let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for toy dialect operations. This operation inherits from the base diff --git a/mlir/examples/toy/Ch6/include/toy/Ops.td b/mlir/examples/toy/Ch6/include/toy/Ops.td index cf2bc3f50480..2229cde162de 100644 --- a/mlir/examples/toy/Ch6/include/toy/Ops.td +++ b/mlir/examples/toy/Ch6/include/toy/Ops.td @@ -25,6 +25,7 @@ include "toy/ShapeInferenceInterface.td" def Toy_Dialect : Dialect { let name = "toy"; let cppNamespace = "::mlir::toy"; + let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for toy dialect operations. This operation inherits from the base |