Last active
December 31, 2025 14:27
-
-
Save sueszli/7257c8544a9a70cb2306cc73e8cb1f02 to your computer and use it in GitHub Desktop.
xdsl contribution
This file contains hidden or 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
| # ---------- new branch | |
| git switch -c <name> | |
| git push origin <name> | |
| git branch -r | |
| # reset to upstream | |
| git remote add upstream https://github.com/xdslproject/xdsl/ | |
| git config pull.rebase false | |
| git pull upstream main | |
| git remote -v | |
| git fetch --all | |
| git reset --hard upstream/main | |
| # ---------- push | |
| make venv | |
| make precommit-install | |
| make precommit | |
| uv run ruff format # run just ruff | |
| uv run pytest # pytests in tests/ | |
| uv run lit tests/filecheck # filecheck tests | |
| make tests # all tests | |
| uv run coverage report # coverage report | |
| # ---------- individual lit tests | |
| uv run xdsl-opt -t llvm --split-input-file tests/filecheck/backend/llvm/convert.mlir | |
| uv run xdsl-opt -t llvm --split-input-file tests/filecheck/backend/llvm/convert.mlir | uv run filecheck tests/filecheck/backend/llvm/convert.mlir | |
| uv run lit -a tests/filecheck/backend/llvm/convert.mlir |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
llvm
echo '"[test.op](http://test.op/)"() : () -> ()' | uv run xdsl-opt -t llvmmps