Skip to content

Instantly share code, notes, and snippets.

@sueszli
Created March 14, 2026 11:49
Show Gist options
  • Select an option

  • Save sueszli/90e5ba7e3bbd5e94636d922c5272dafc to your computer and use it in GitHub Desktop.

Select an option

Save sueszli/90e5ba7e3bbd5e94636d922c5272dafc to your computer and use it in GitHub Desktop.
#!/bin/bash
set -eEuo pipefail
TEST_FILE=tests/filecheck/mlir-conversion/with-mlir/backend/llvm/convert_op.mlir
mkdir -p "$(dirname "$TEST_FILE")"
cat > "$TEST_FILE" <<'EOF'
// RUN: mlir-translate --mlir-to-llvmir ../../../../backend/llvm/convert_op.mlir | filecheck ../../../../backend/llvm/convert_op.mlir
EOF
uv run lit -v "$TEST_FILE" || true
rm -f "$TEST_FILE"
rmdir -p "$(dirname "$TEST_FILE")" 2>/dev/null || true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment