Walker,
)
from openpower.decoder.power_enums import (
+ SVEType,
SVPType,
SVExtra,
In1Sel,
yield node
+class ETypeVisitor(SVP64InstructionVisitor):
+ @mdis.dispatcher.Hook(SVEType)
+ @contextlib.contextmanager
+ def dispatch_ptype(self, node):
+ print(node)
+ yield node
+
+
class PTypeVisitor(SVP64InstructionVisitor):
@mdis.dispatcher.Hook(SVPType)
@contextlib.contextmanager
SelectorsVisitor,
"print instruction selectors",
),
+ "etype": (
+ ETypeVisitor,
+ "print instruction etype",
+ ),
"ptype": (
PTypeVisitor,
"print instruction ptype",