I see. This is easily doable with the Rewriter API, since you can do an arbitrary callback, but it doesn't have the niceties of the Parition pass.
The current AttrPattern is only matching Op attributes, but that's fairly easy to extend. I think I prefer doing this with the AttrPattern, it's a simpler API. That being said, an arbitrary callback will always be more flexible. Do you guys have a strong preference toward a callback mechanism or a usecase with more complex logic? --- [Visit Topic](https://discuss.tvm.ai/t/byoc-use-pattern-language-to-create-composite-functions/6727/20) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/380792f9583bf5a17f32c94ebf2a93bbff80598016215f4810415b0efd6466ad).