MLIR  15.0.0git
Passes.h
Go to the documentation of this file.
1 //===- Passes.h - Pass Entrypoints ------------------------------*- C++ -*-===//
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 
9 #ifndef MLIR_DIALECT_MATH_TRANSFORMS_PASSES_H_
10 #define MLIR_DIALECT_MATH_TRANSFORMS_PASSES_H_
11 
12 namespace mlir {
13 
14 class RewritePatternSet;
15 
16 void populateExpandTanhPattern(RewritePatternSet &patterns);
17 
18 void populateMathAlgebraicSimplificationPatterns(RewritePatternSet &patterns);
19 
21  // Enables the use of AVX2 intrinsics in some of the approximations.
22  bool enableAvx2 = false;
23 };
24 
26  RewritePatternSet &patterns,
28 
29 } // namespace mlir
30 
31 #endif // MLIR_DIALECT_MATH_TRANSFORMS_PASSES_H_
Include the generated interface declarations.
void populateMathAlgebraicSimplificationPatterns(RewritePatternSet &patterns)
void populateExpandTanhPattern(RewritePatternSet &patterns)
Definition: ExpandTanh.cpp:56
void populateMathPolynomialApproximationPatterns(RewritePatternSet &patterns, const MathPolynomialApproximationOptions &options={})
static llvm::ManagedStatic< PassManagerOptions > options