Xilinx / mlir-air

MIT License
74 stars 26 forks source link

Remove the need to manually specify (Herd|Launch|Segment)TerminatorOps #602

Closed hunhoffe closed 2 months ago

hunhoffe commented 2 months ago

This PR removes the need to specify (Herd|Launch|Segment)TerminatorOps in the python bindings by specifying the terminator field in the region_op definition of the herd, launch, and segment decorators. I believe it makes the resulting code cleaner.

This PR builds on https://github.com/Xilinx/mlir-air/pull/600 to make merging easier since both PRs change about the same files. If the previous PR is not accepted, it should be easy enough to move these few minor changes though git cherry pick or similar.