RootOrderingTest is a low-level unit test that creates values and uses them as vertices in a directed graph. These vertices were created using builder.create, but never freed, due to my insufficient understanding of the MLIR infrastructure.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
It is a bit unusual to work with operations that aren't inserted in a block, I guess it works here...
Yes, @bondhugula raised the same point. The reason for creating the Values outside of the block is that they simply act as graph vertices / vertex IDs in RootOrdering. They are not being tested as a part of a block / IR. Maybe this warrants a comment on the unit test; will add it.
Comment Actions
Would likely be better to have a Block next to the context field, and add the operations into that.