Fix namespace for complex lowerings
PiperOrigin-RevId: 322180317
This commit is contained in:
parent
30fa3db949
commit
cc776071fe
|
@ -51,7 +51,7 @@ class LowerComplex : public PassWrapper<LowerComplex, FunctionPass> {
|
||||||
} // end anonymous namespace
|
} // end anonymous namespace
|
||||||
|
|
||||||
namespace mlir {
|
namespace mlir {
|
||||||
namespace hlo {
|
namespace mhlo {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
#include "third_party/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/generated_lower_complex.inc"
|
#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) {
|
OwningRewritePatternList* patterns) {
|
||||||
populateWithGenerated(context, patterns);
|
populateWithGenerated(context, patterns);
|
||||||
}
|
}
|
||||||
} // end namespace hlo
|
} // end namespace mhlo
|
||||||
} // end namespace mlir
|
} // end namespace mlir
|
||||||
|
|
||||||
// Lowers the complex operations that can be represented using other operations.
|
// Lowers the complex operations that can be represented using other operations.
|
||||||
void LowerComplex::runOnFunction() {
|
void LowerComplex::runOnFunction() {
|
||||||
// Add lowering patterns to the list.
|
// Add lowering patterns to the list.
|
||||||
OwningRewritePatternList patterns;
|
OwningRewritePatternList patterns;
|
||||||
mlir::hlo::PopulateComplexLoweringPatterns(&getContext(), &patterns);
|
mlir::mhlo::PopulateComplexLoweringPatterns(&getContext(), &patterns);
|
||||||
|
|
||||||
applyPatternsAndFoldGreedily(getFunction(), patterns);
|
applyPatternsAndFoldGreedily(getFunction(), patterns);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue