You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When printing out pyqir_parser objects at the console or in a notebook, the default object.__repr__ implementation is used, making it hard to understand output without further processing:
It would be good if parser objects supported __repr__ to provide more useful diagnostic output in such contexts.
The text was updated successfully, but these errors were encountered:
Value (and its subtypes, including Function, BasicBlock, Instruction, etc.) now has __str__ which prints the LLVM IR text. It's not as obvious to me what to do for __repr__, since there is no string that can reproduce the object when run through Python eval.
bamarsha
changed the title
Parser objects should support__repr__ and __str__
LLVM objects should implement __repr__Nov 22, 2022
When printing out
pyqir_parser
objects at the console or in a notebook, the defaultobject.__repr__
implementation is used, making it hard to understand output without further processing:It would be good if parser objects supported
__repr__
to provide more useful diagnostic output in such contexts.The text was updated successfully, but these errors were encountered: