Using graph equality functions to test the Jlm/Mlir converter #492
-
|
The current Jlm/Mlir converter testing process is really tedious. It requires constructing a test graph in both Jlm and Mlir and then writing checks for each of the generated Jlm/Mlir representations. The question is if such an equality check function already exists in jlm. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
We used to have something for determining graph equivalence in jive, but that was not ported over as part of the move to jlm. However, it should not be too difficult to write a method for the region class that checks for structural equivalence of two regions. You say that you want to implement two methods, one on the jlm side and one on the mlir side. How about you only implement one method on the jlm side and then perform this in the unit tests:
Would this not do the trick for you @ProgrammingLouis ? |
Beta Was this translation helpful? Give feedback.
We used to have something for determining graph equivalence in jive, but that was not ported over as part of the move to jlm. However, it should not be too difficult to write a method for the region class that checks for structural equivalence of two regions.
You say that you want to implement two methods, one on the jlm side and one on the mlir side. How about you only implement one method on the jlm side and then perform this in the unit tests: