MLIR
21.0.0git
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
a
c
f
h
i
k
m
n
o
p
r
s
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
f
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
p
r
s
u
v
Related Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Variables
_
a
b
c
d
e
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
h
i
m
n
o
r
s
t
u
v
y
Enumerations
Enumerator
a
b
c
e
f
g
i
m
n
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
y
z
include
mlir
Dialect
Math
Transforms
Approximation.h
Go to the documentation of this file.
1
//===- Approximation.h - Math dialect -----------------------------*- 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_APPROXIMATION_H
10
#define MLIR_DIALECT_MATH_TRANSFORMS_APPROXIMATION_H
11
12
#include "
mlir/Dialect/Math/IR/Math.h
"
13
#include "
mlir/IR/PatternMatch.h
"
14
15
namespace
mlir
{
16
namespace
math {
17
18
struct
ErfPolynomialApproximation
:
public
OpRewritePattern
<math::ErfOp> {
19
public
:
20
using
OpRewritePattern::OpRewritePattern
;
21
22
LogicalResult
matchAndRewrite
(math::ErfOp op,
23
PatternRewriter
&rewriter)
const
final
;
24
};
25
26
struct
ErfcPolynomialApproximation
:
public
OpRewritePattern
<math::ErfcOp> {
27
public
:
28
using
OpRewritePattern::OpRewritePattern
;
29
30
LogicalResult
matchAndRewrite
(math::ErfcOp op,
31
PatternRewriter
&rewriter)
const
final
;
32
};
33
34
}
// namespace math
35
}
// namespace mlir
36
37
#endif
// MLIR_DIALECT_MATH_TRANSFORMS_APPROXIMATION_H
PatternMatch.h
mlir::PatternRewriter
A special type of RewriterBase that coordinates the application of a rewrite pattern on the current I...
Definition:
PatternMatch.h:749
Math.h
mlir
Include the generated interface declarations.
Definition:
LocalAliasAnalysis.h:20
mlir::OpRewritePattern
OpRewritePattern is a wrapper around RewritePattern that allows for matching and rewriting against an...
Definition:
PatternMatch.h:314
mlir::OpRewritePattern::OpRewritePattern
OpRewritePattern(MLIRContext *context, PatternBenefit benefit=1, ArrayRef< StringRef > generatedNames={})
Patterns must specify the root operation name they match against, and can also specify the benefit of...
Definition:
PatternMatch.h:319
mlir::math::ErfPolynomialApproximation
Definition:
Approximation.h:18
mlir::math::ErfPolynomialApproximation::matchAndRewrite
LogicalResult matchAndRewrite(math::ErfOp op, PatternRewriter &rewriter) const final
Definition:
PolynomialApproximation.cpp:1014
mlir::math::ErfcPolynomialApproximation
Definition:
Approximation.h:26
mlir::math::ErfcPolynomialApproximation::matchAndRewrite
LogicalResult matchAndRewrite(math::ErfcOp op, PatternRewriter &rewriter) const final
Definition:
PolynomialApproximation.cpp:1135
Generated on Thu May 1 2025 20:32:10 for MLIR by
1.9.1