tvm
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::ReprPrinter Class Reference

A printer class to print the AST/IR nodes. More...

#include <repr_printer.h>

Inheritance diagram for tvm::ReprPrinter:
Collaboration diagram for tvm::ReprPrinter:

Public Types

using FType = NodeFunctor< void(const ObjectRef &, ReprPrinter *)>
 

Public Member Functions

 ReprPrinter (std::ostream &stream)
 
void Print (const ObjectRef &node)
 The node to be printed. More...
 
void PrintIndent ()
 Print indent to the stream. More...
 

Static Public Member Functions

static FTypevtable ()
 

Public Attributes

std::ostream & stream
 The output stream. More...
 
int indent {0}
 The indentation level. More...
 

Detailed Description

A printer class to print the AST/IR nodes.

Member Typedef Documentation

◆ FType

Constructor & Destructor Documentation

◆ ReprPrinter()

tvm::ReprPrinter::ReprPrinter ( std::ostream &  stream)
inlineexplicit

Member Function Documentation

◆ Print()

void tvm::ReprPrinter::Print ( const ObjectRef node)

The node to be printed.

◆ PrintIndent()

void tvm::ReprPrinter::PrintIndent ( )

Print indent to the stream.

◆ vtable()

static FType& tvm::ReprPrinter::vtable ( )
static

Member Data Documentation

◆ indent

int tvm::ReprPrinter::indent {0}

The indentation level.

◆ stream

std::ostream& tvm::ReprPrinter::stream

The output stream.


The documentation for this class was generated from the following file: