blob: 285881b4d2c8c3e305d3eb1dac4f174b31a9d147 [file] [log] [blame]
//===- ComplexToStandard.h - Utils to convert from the complex dialect ----===//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <memory>
#include "mlir/Transforms/DialectConversion.h"
namespace mlir {
class FuncOp;
class RewritePatternSet;
template <typename T>
class OperationPass;
/// Populate the given list with patterns that convert from Complex to Standard.
void populateComplexToStandardConversionPatterns(RewritePatternSet &patterns);
/// Create a pass to convert Complex operations to the Standard dialect.
std::unique_ptr<OperationPass<FuncOp>> createConvertComplexToStandardPass();
} // namespace mlir