From cc776071fe123806373370d1a02255278e74e029 Mon Sep 17 00:00:00 2001 From: Robert Suderman Date: Mon, 20 Jul 2020 17:58:56 +0000 Subject: [PATCH] Fix namespace for complex lowerings PiperOrigin-RevId: 322180317 --- lib/Dialect/mhlo/transforms/lower_complex.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Dialect/mhlo/transforms/lower_complex.cc b/lib/Dialect/mhlo/transforms/lower_complex.cc index 0bc47fe..083da64 100644 --- a/lib/Dialect/mhlo/transforms/lower_complex.cc +++ b/lib/Dialect/mhlo/transforms/lower_complex.cc @@ -51,7 +51,7 @@ class LowerComplex : public PassWrapper { } // end anonymous namespace namespace mlir { -namespace hlo { +namespace mhlo { namespace { #include "third_party/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/generated_lower_complex.inc" @@ -62,14 +62,14 @@ void PopulateComplexLoweringPatterns(MLIRContext* context, OwningRewritePatternList* patterns) { populateWithGenerated(context, patterns); } -} // end namespace hlo +} // end namespace mhlo } // end namespace mlir // Lowers the complex operations that can be represented using other operations. void LowerComplex::runOnFunction() { // Add lowering patterns to the list. OwningRewritePatternList patterns; - mlir::hlo::PopulateComplexLoweringPatterns(&getContext(), &patterns); + mlir::mhlo::PopulateComplexLoweringPatterns(&getContext(), &patterns); applyPatternsAndFoldGreedily(getFunction(), patterns); }