$ uv run pytest -x tests
==================================================================================== test session starts ====================================================================================
platform darwin -- Python 3.12.5, pytest-8.3.5, pluggy-1.5.0
rootdir: /Users/saul/p/mlir-egglog
configfile: pyproject.toml
collected 15 items
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
diff --git a/src/mlir_egglog/jit_engine.py b/src/mlir_egglog/jit_engine.py | |
index de9ac2f..e3b3aa0 100644 | |
--- a/src/mlir_egglog/jit_engine.py | |
+++ b/src/mlir_egglog/jit_engine.py | |
@@ -10,7 +10,6 @@ from egglog import RewriteOrRule, Ruleset | |
import llvmlite.binding as llvm | |
from mlir_egglog.llvm_runtime import ( | |
- create_execution_engine, | |
init_llvm, |
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
$ pytest -vvv tests | |
==================================================================================================================== test session starts ===================================================================================================================== | |
platform darwin -- Python 3.12.3, pytest-8.3.5, pluggy-1.5.0 -- /usr/local/Caskroom/miniconda/base/envs/mlir-egglog/bin/python3.12 | |
cachedir: .pytest_cache | |
rootdir: /Users/saul/p/mlir-egglog | |
configfile: pyproject.toml | |
collected 15 items | |
tests/test_basic_expressions.py::TestBasicExpressions::test_arithmetic_expression PASSED [ 6%] | |
tests/test_basic_expressions.py::TestBasicExpressions::test_constants_and_sqrt PASSED [ 13%] |
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
$ git diff | |
diff --git a/src/mlir_egglog/mlir_backend.py b/src/mlir_egglog/mlir_backend.py | |
index 6ab6867..91f3f53 100644 | |
--- a/src/mlir_egglog/mlir_backend.py | |
+++ b/src/mlir_egglog/mlir_backend.py | |
@@ -49,6 +49,7 @@ COMMON_INITIAL_OPTIONS = ( | |
"-convert-vector-to-scf", | |
"-convert-linalg-to-loops", | |
"-lower-affine", | |
+ "--convert-arith-to-llvm", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
$ uv run pytest -x | |
==================================================================== test session starts ==================================================================== | |
platform darwin -- Python 3.12.5, pytest-8.3.5, pluggy-1.5.0 | |
rootdir: /Users/saul/p/mlir-egglog | |
configfile: pyproject.toml | |
collected 15 items | |
tests/test_basic_expressions.py F | |
========================================================================= FAILURES ========================================================================== |
This file has been truncated, but you can view the full file.
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>IPyWidget export</title> | |
</head> | |
<body> | |
<!-- Load require.js. Delete this if your page already loads require.js --> |
This file has been truncated, but you can view the full file.
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
{ | |
"id": "--eclipse-layout-kernel-root", | |
"layoutOptions": { | |
"elk.algorithm": "layered", | |
"elk.direction": "DOWN", | |
"elk.layered.nodePlacement.strategy": "NETWORK_SIMPLEX", | |
"elk.layered.mergeEdges": "true", | |
"elk.aspectRatio": 4.56 | |
}, | |
"children": [ |
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
{ | |
"id": "--eclipse-layout-kernel-root", | |
"layoutOptions": { | |
"elk.algorithm": "layered", | |
"elk.layered.spacing.nodeNodeBetweenLayers": "100", | |
"elk.spacing.nodeNode": "80", | |
"elk.direction": "DOWN", | |
"elk.portConstraints": "FIXED_SIDE", | |
"elk.hierarchyHandling": "INCLUDE_CHILDREN" | |
}, |
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
{ | |
"id": "--eclipse-layout-kernel-root", | |
"layoutOptions": { | |
"elk.algorithm": "layered", | |
"elk.layered.spacing.nodeNodeBetweenLayers": "100", | |
"elk.spacing.nodeNode": "80", | |
"elk.direction": "DOWN", | |
"elk.portConstraints": "FIXED_SIDE", | |
"elk.hierarchyHandling": "INCLUDE_CHILDREN", | |
}, |
NewerOlder