[Libre-soc-bugs] [Bug 1094] insndb instruction database visitor-walker is needed

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Jun 10 17:12:12 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1094

--- Comment #105 from Dmitry Selyutin <ghostmansd at gmail.com> ---
Pushed the holy-cow implementation.
https://git.libre-soc.org/?p=openpower-isa.git;a=commitdiff;h=8a43ffad8d938f83cb4ac6c9963a404e0d8ab38b
https://git.libre-soc.org/?p=openpower-isa.git;a=commitdiff;h=61cc08f2d11fce0989db4fb4d502e14efc56d80a

Took more code than you like, but most of it are just convenience wrappers
(e.g. some methods in VisitorMeta) and checks (e.g. checking `callable` or
`isinstance(nodecls, type)`). This is just so that users doesn't shoot their
feet and at the same time could use some cool tricks (listing all hooks the
visitor has, checking whether there's a hook for some type, etc.).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list