Walker,
)
from openpower.decoder.power_enums import (
+ SVPType,
SVExtra,
In1Sel,
In2Sel,
yield node
+class PTypeVisitor(SVP64InstructionVisitor):
+ @mdis.dispatcher.Hook(SVPType)
+ @contextlib.contextmanager
+ def dispatch_ptype(self, node):
+ print(node)
+ yield node
+
+
class ExtrasVisitor(SVP64InstructionVisitor, SelectorsVisitor):
@mdis.dispatcher.Hook(SVP64Record.ExtraMap)
@contextlib.contextmanager
SelectorsVisitor,
"print instruction selectors",
),
+ "ptype": (
+ PTypeVisitor,
+ "print instruction ptype",
+ ),
"extras": (
ExtrasVisitor,
"print instruction extras (SVP64)",