spcl / pymlir

Python interface for MLIR - the Multi-Level Intermediate Representation
BSD 3-Clause "New" or "Revised" License
210 stars 36 forks source link

parse .td files to dialects #10

Open JiangPQ opened 3 years ago

JiangPQ commented 3 years ago

Hi, I wonder if it is possible that pymlir takes .td files as input and parse them to Dialects? So that I don't have to hand write the python Dialects. Thanks!

tbennun commented 3 years ago

Interesting idea! Currently we don't support this, but if some dependency like PyTablegen is introduced one can implement that.

JiangPQ commented 3 years ago

@tbennun Glad to see your reply! Never heard PyTablegen before. I'll check what I can do with it. Thanks for you hints!

BoBoManTou commented 4 months ago

Is. td now supported as input for dialects?