llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Printer Class Reference

#include <core/printer.h>

Public Member Functions

 Printer (llvm::raw_ostream &os)
 Initialises the printer.
 
virtual void Print (const Prog &prog)
 Prints a whole program.
 
virtual void Print (const Data &data)
 Prints a data segment.
 
virtual void Print (const Object &object)
 Prints an object.
 
virtual void Print (const Atom &atom)
 Prints an atom.
 
virtual void Print (const Func &func)
 Prints a function.
 
virtual void Print (const Block &block)
 Prints a block.
 
virtual void Print (const Inst &inst)
 Prints an instruction.
 
virtual void Print (const Expr &expr)
 Prints an expression.
 
virtual void Print (ConstRef< Value > val)
 Prints a value.
 
virtual void Print (const std::string_view str)
 Print a quoted string.
 

Protected Member Functions

virtual void PrintFuncHeader (const Func &func)
 Hook to print additional information for functions.
 
virtual void PrintInstHeader (const Inst &inst)
 Hook to print additional information for instructions.
 

Protected Attributes

llvm::raw_ostream & os_
 Output stream.
 

Detailed Description

Prints a program.


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