-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add toml * implement xdsl config * add newline * make changes
- Loading branch information
1 parent
118075f
commit 21871fb
Showing
19 changed files
with
83 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
|
||
from tools.snax_opt_main import main | ||
|
||
if __name__ == "__main__": | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from xdsl.dialects import memref, linalg | ||
from xdsl.dialects import linalg, memref | ||
|
||
|
||
def dispatch_to_dm(op): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[tool.ruff] | ||
select = ["E", "F", "W", "I", "UP", "PT", "TID251"] | ||
ignore = [ | ||
"E741", # https://beta.ruff.rs/docs/rules/ambiguous-variable-name/ | ||
"PT006", # https://beta.ruff.rs/docs/rules/pytest-parametrize-names-wrong-type/ | ||
"PT007", # https://beta.ruff.rs/docs/rules/pytest-parametrize-values-wrong-type/ | ||
"PT011", # https://beta.ruff.rs/docs/rules/pytest-raises-too-broad/ | ||
"PT012", # https://beta.ruff.rs/docs/rules/pytest-raises-with-multiple-statements/ | ||
"PT015", # https://beta.ruff.rs/docs/rules/pytest-assert-always-false/ | ||
] | ||
target-version = "py310" | ||
|
||
[tool.ruff.flake8-tidy-imports.banned-api] | ||
"xdsl.parser.core".msg = "Use xdsl.parser instead." | ||
"xdsl.parser.attribute_parser".msg = "Use xdsl.parser instead." | ||
"xdsl.parser.affine_parser".msg = "Use xdsl.parser instead." | ||
"xdsl.ir.core".msg = "Use xdsl.ir instead." | ||
"xdsl.irdl.irdl".msg = "Use xdsl.irdl instead" | ||
"xdsl.ir.affine.affine_expr".msg = "Use xdsl.ir.affine instead" | ||
"xdsl.ir.affine.affine_map".msg = "Use xdsl.ir.affine instead" | ||
"xdsl.ir.affine.affine_set".msg = "Use xdsl.ir.affine instead" | ||
|
||
|
||
[tool.ruff.per-file-ignores] | ||
"__init__.py" = ["F403"] | ||
"tests/filecheck/frontend/programs/invalid.py" = ["F811", "F841"] | ||
"tests/filecheck/frontend/dialects/invalid.py" = ["F811"] | ||
"tests/test_declarative_assembly_format.py" = ["F811"] | ||
"versioneer.py" = ["ALL"] | ||
"_version.py" = ["ALL"] | ||
|
||
[tool.ruff.mccabe] | ||
max-complexity = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from setuptools import setup, find_packages | ||
from setuptools import find_packages, setup | ||
|
||
setup( | ||
name="compiler", | ||
|