Skip to content
Discussion options

You must be logged in to vote

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:

  1. You setup a JLM RVSDG in your unit test. Let's call it jlm-rvsdg-1.
  2. You feed jlm-rvsdg-1 into the JLM -> MLIR conversion.
  3. Then you feed the result of step 2 into the MLIR -> JLM conversion. Let's call the output jlm-rvsdg-2.
  4. Then you check that …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ProgrammingLouis
Comment options

@phate
Comment options

Answer selected by ProgrammingLouis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants