diff options
| author | Lei Zhang <antiagainst@google.com> | 2019-09-03 12:09:07 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-09-03 12:09:58 -0700 |
| commit | 5593e005c676609c4b9bbf332fe894784d98d09f (patch) | |
| tree | 78e33528862e1b76cae5662a61b81f646ea65a94 /mlir/lib/Conversion/GPUToSPIRV | |
| parent | b1ef9dc22c067599cdb5832c05ad852f07716543 (diff) | |
| download | bcm5719-llvm-5593e005c676609c4b9bbf332fe894784d98d09f.tar.gz bcm5719-llvm-5593e005c676609c4b9bbf332fe894784d98d09f.zip | |
Add folding rule and dialect materialization hook for spv.constant
This will allow us to use MLIR's folding infrastructure to deduplicate
SPIR-V constants.
This CL also changed isValidSPIRVType in SPIRVDialect to a static method.
PiperOrigin-RevId: 266984403
Diffstat (limited to 'mlir/lib/Conversion/GPUToSPIRV')
| -rw-r--r-- | mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp b/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp index 06b2498279d..6746594ce87 100644 --- a/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp +++ b/mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp @@ -142,7 +142,7 @@ void GPUToSPIRVPass::runOnModule() { } /// Dialect conversion to lower the functions with the spirv::ModuleOps. - SPIRVBasicTypeConverter basicTypeConverter(context); + SPIRVBasicTypeConverter basicTypeConverter; SPIRVTypeConverter typeConverter(&basicTypeConverter); OwningRewritePatternList patterns; patterns.insert< |

