Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dialects: (math) Move math dialect out of experimental [NFC] #3768

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/dialects/test_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
f32,
i32,
)
from xdsl.dialects.experimental.math import (
from xdsl.dialects.math import (
AbsFOp,
AbsIOp,
Atan2Op,
Expand Down
2 changes: 1 addition & 1 deletion xdsl/dialects/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def get_ltl():
return LTL

def get_math():
from xdsl.dialects.experimental.math import Math
from xdsl.dialects.math import Math

return Math

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion xdsl/transforms/experimental/replace_incompatible_fpga.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from xdsl.dialects import builtin
from xdsl.dialects.arith import MaximumfOp
from xdsl.dialects.builtin import f64
from xdsl.dialects.experimental.math import AbsFOp, CopySignOp
from xdsl.dialects.func import CallOp, FuncOp
from xdsl.dialects.math import AbsFOp, CopySignOp
from xdsl.passes import ModulePass
from xdsl.pattern_rewriter import (
GreedyRewritePatternApplier,
Expand Down
3 changes: 1 addition & 2 deletions xdsl/transforms/printf_to_putchar.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from xdsl.builder import ImplicitBuilder
from xdsl.context import MLContext
from xdsl.dialects import arith, func, scf
from xdsl.dialects import arith, func, math, scf
from xdsl.dialects.builtin import IndexType, IntegerType, ModuleOp, i32
from xdsl.dialects.experimental import math
from xdsl.dialects.printf import PrintCharOp, PrintIntOp
from xdsl.ir import Block, SSAValue
from xdsl.passes import ModulePass
Expand Down
Loading