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
This commit is contained in:
Mahesh Ravishankar 2019-11-25 13:19:19 -08:00 committed by A. Unique TensorFlower
parent 7fd46bf258
commit f87b2fd41b
1 changed files with 3 additions and 2 deletions

View File

@ -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>