loki.ir.pprint

pprint(ir, stream=None)

Pretty-print the given IR using Stringifier.

Parameters:
  • ir (Node) – The IR node starting from which to print the tree

  • stream (optional) – If given, call Stringifier.write() on this stream instead of sys.stdout