Fix namespaces on a few pass factory functions.

--

PiperOrigin-RevId: 246035278
This commit is contained in:
Stella Laurenzo 2019-04-30 15:32:55 -07:00 committed by Mehdi Amini
parent 17d3acf40c
commit e402d4330d
3 changed files with 6 additions and 4 deletions

View File

@ -386,7 +386,7 @@ void LowerUniformRealMathPass::runOnFunction() {
applyPatternsGreedily(fn, std::move(patterns));
}
FunctionPassBase *createLowerUniformRealMathPass() {
FunctionPassBase *mlir::fxpmath::createLowerUniformRealMathPass() {
return new LowerUniformRealMathPass();
}
@ -406,7 +406,7 @@ void LowerUniformCastsPass::runOnFunction() {
applyPatternsGreedily(fn, std::move(patterns));
}
FunctionPassBase *createLowerUniformCastsPass() {
FunctionPassBase *mlir::fxpmath::createLowerUniformCastsPass() {
return new LowerUniformCastsPass();
}

View File

@ -126,7 +126,9 @@ void ConvertConstPass::runOnFunction() {
applyPatternsGreedily(func, std::move(patterns));
}
FunctionPassBase *createConvertConstPass() { return new ConvertConstPass(); }
FunctionPassBase *mlir::quant::createConvertConstPass() {
return new ConvertConstPass();
}
static PassRegistration<ConvertConstPass>
pass("quant-convert-const",

View File

@ -104,7 +104,7 @@ void ConvertSimulatedQuantPass::runOnFunction() {
signalPassFailure();
}
FunctionPassBase *createConvertSimulatedQuantPass() {
FunctionPassBase *mlir::quant::createConvertSimulatedQuantPass() {
return new ConvertSimulatedQuantPass();
}