diff options
| author | River Riddle <riverriddle@google.com> | 2019-08-05 18:37:56 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-08-05 18:38:22 -0700 |
| commit | a0df3ebd15e84eab052ebf1f9e8cd4e561f7b4aa (patch) | |
| tree | c213b80e754258a3998d50d38afa84a792951bea /mlir/lib/Conversion/StandardToSPIRV | |
| parent | 3657966e839125bd26edbdf00c874ad1868b038a (diff) | |
| download | bcm5719-llvm-a0df3ebd15e84eab052ebf1f9e8cd4e561f7b4aa.tar.gz bcm5719-llvm-a0df3ebd15e84eab052ebf1f9e8cd4e561f7b4aa.zip | |
NFC: Implement OwningRewritePatternList as a class instead of a using directive.
This allows for proper forward declaration, as opposed to leaking the internal implementation via a using directive. This also allows for all pattern building to go through 'insert' methods on the OwningRewritePatternList, replacing uses of 'push_back' and 'RewriteListBuilder'.
PiperOrigin-RevId: 261816316
Diffstat (limited to 'mlir/lib/Conversion/StandardToSPIRV')
| -rw-r--r-- | mlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp b/mlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp index d32d8668046..067f2aeda06 100644 --- a/mlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp +++ b/mlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp @@ -201,6 +201,6 @@ void populateStandardToSPIRVPatterns(MLIRContext *context, OwningRewritePatternList &patterns) { populateWithGenerated(context, &patterns); // Add the return op conversion. - RewriteListBuilder<ReturnToSPIRVConversion>::build(patterns, context); + patterns.insert<ReturnToSPIRVConversion>(context); } } // namespace mlir |

