Skip to content

Instantly share code, notes, and snippets.

@sueszli
Last active December 31, 2025 14:27
Show Gist options
  • Select an option

  • Save sueszli/7257c8544a9a70cb2306cc73e8cb1f02 to your computer and use it in GitHub Desktop.

Select an option

Save sueszli/7257c8544a9a70cb2306cc73e8cb1f02 to your computer and use it in GitHub Desktop.
xdsl contribution
# ---------- 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
@sueszli
Copy link
Author

sueszli commented Dec 31, 2025

llvm

mps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment