DialectAsmParser has a parseAttribute member that takes a
contextual type, but DialectAsmPrinter doesn't have the corresponding
member to take advantage of it. As such, custom attribute
implementations can't really use it. This adds the obvious missing
method which fills this hole.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I plan to land this as "obvious" after the smoke tests pass. Incidentally, there is a ton of duplication between DialectImplementation.h and OpImplemention.h, I wonder if there is a way to factor this better?
Comment Actions
Any chance we can get a test op to use this?
Oh sorry, didn't see this. Yes, I can add a test for this if needed, is circt using this enough? This isn't likely to break or regress.
If that's not enough, I'll have to add a custom attribute, because ops don't use this printer path (that's the root problem :)