summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Conversion/GPUToSPIRV
diff options
context:
space:
mode:
authorMahesh Ravishankar <ravishankarm@google.com>2019-11-25 13:19:19 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-11-25 13:19:53 -0800
commitf87b2fd41bcc92922be2dec7cb87238b12194a2a (patch)
tree303a75d6c51872106ce57fbf17216ab37e03176e /mlir/lib/Conversion/GPUToSPIRV
parent7fd46bf258e8d256a295426548826e03decb6552 (diff)
downloadbcm5719-llvm-f87b2fd41bcc92922be2dec7cb87238b12194a2a.tar.gz
bcm5719-llvm-f87b2fd41bcc92922be2dec7cb87238b12194a2a.zip
NFC: Actually expose the implementation of createGPUToSPIRVLoweringPass.
A mismatch in the function declaration and function definition, prevented the implementation of the createGPUToSPIRVLoweringPass from being exposed. PiperOrigin-RevId: 282419815
Diffstat (limited to 'mlir/lib/Conversion/GPUToSPIRV')
-rw-r--r--mlir/lib/Conversion/GPUToSPIRV/ConvertGPUToSPIRVPass.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/mlir/lib/Conversion/GPUToSPIRV/ConvertGPUToSPIRVPass.cpp b/mlir/lib/Conversion/GPUToSPIRV/ConvertGPUToSPIRVPass.cpp
index df380689c22..49f161e3794 100644
--- a/mlir/lib/Conversion/GPUToSPIRV/ConvertGPUToSPIRVPass.cpp
+++ b/mlir/lib/Conversion/GPUToSPIRV/ConvertGPUToSPIRVPass.cpp
@@ -19,6 +19,7 @@
// into a spv.module operation
//
//===----------------------------------------------------------------------===//
+#include "mlir/Conversion/GPUToSPIRV/ConvertGPUToSPIRVPass.h"
#include "mlir/Conversion/GPUToSPIRV/ConvertGPUToSPIRV.h"
#include "mlir/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.h"
#include "mlir/Dialect/GPU/GPUDialect.h"
@@ -93,8 +94,8 @@ void GPUToSPIRVPass::runOnModule() {
}
}
-OpPassBase<ModuleOp> *createConvertGPUToSPIRVPass() {
- return new GPUToSPIRVPass();
+std::unique_ptr<OpPassBase<ModuleOp>> mlir::createConvertGPUToSPIRVPass() {
+ return std::make_unique<GPUToSPIRVPass>();
}
static PassRegistration<GPUToSPIRVPass>
OpenPOWER on IntegriCloud