MLIR 22.0.0git
ComplexToLibm.h
Go to the documentation of this file.
1//===- ComplexToLibm.h - Utils to convert from the complex dialect --------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8#ifndef MLIR_CONVERSION_COMPLEXTOLIBM_COMPLEXTOLIBM_H_
9#define MLIR_CONVERSION_COMPLEXTOLIBM_COMPLEXTOLIBM_H_
10
11#include "mlir/Pass/Pass.h"
13
14namespace mlir {
15template <typename T>
16class OperationPass;
17
18#define GEN_PASS_DECL_CONVERTCOMPLEXTOLIBM
19#include "mlir/Conversion/Passes.h.inc"
20
21/// Populate the given list with patterns that convert from Complex to Libm
22/// calls.
24 PatternBenefit benefit);
25
26} // namespace mlir
27
28#endif // MLIR_CONVERSION_COMPLEXTOLIBM_COMPLEXTOLIBM_H_
Pass to transform an operation of a specific type.
Definition Pass.h:356
Include the generated interface declarations.
const FrozenRewritePatternSet & patterns
void populateComplexToLibmConversionPatterns(RewritePatternSet &patterns, PatternBenefit benefit)
Populate the given list with patterns that convert from Complex to Libm calls.