How to add custom linalg named ops using OpDSL? (original) (raw)
November 18, 2024, 6:29am 2
@rengolin it’s buried in discussion threads, but we should add a deprecation warning to the docs on opdsl.
Hi, we’re moving away from OpDSL and just authoring the ops in tablegen. OpDSL didn’t have the flexibility needed to define the more complicated ops, and this was causing a large explosion of custom ops when very few were need if defined more robustly.
With that said, linalg was intended to work with the tensor and memref type system and it occupies a very specific spot in the representation. I don’t know what you are trying to do with your async_token, but if that is what I expect based on the name, it belongs to something above linalg. You can of course do what you want in your system, but I anticipate that this will not compose very well because such things are at a pretty different level of abstraction compared to what linalg represents.