My Project
Public Member Functions | List of all members
mlir::DialectAsmPrinter Class Referenceabstract

#include <DialectImplementation.h>

Public Member Functions

 DialectAsmPrinter ()
 
virtual ~DialectAsmPrinter ()
 
virtual raw_ostream & getStream () const =0
 
virtual void printAttribute (Attribute attr)=0
 Print the given attribute to the stream. More...
 
virtual void printFloat (const APFloat &value)=0
 
virtual void printType (Type type)=0
 Print the given type to the stream. More...
 

Detailed Description

This is a pure-virtual base class that exposes the asmprinter hooks necessary to implement a custom printAttribute/printType() method on a dialect.

Constructor & Destructor Documentation

◆ DialectAsmPrinter()

mlir::DialectAsmPrinter::DialectAsmPrinter ( )
inline

◆ ~DialectAsmPrinter()

DialectAsmPrinter::~DialectAsmPrinter ( )
virtual

Member Function Documentation

◆ getStream()

virtual raw_ostream& mlir::DialectAsmPrinter::getStream ( ) const
pure virtual

◆ printAttribute()

virtual void mlir::DialectAsmPrinter::printAttribute ( Attribute  attr)
pure virtual

Print the given attribute to the stream.

◆ printFloat()

virtual void mlir::DialectAsmPrinter::printFloat ( const APFloat &  value)
pure virtual

Print the given floating point value in a stabilized form that can be roundtripped through the IR. This is the companion to the 'parseFloat' hook on the DialectAsmParser.

◆ printType()

virtual void mlir::DialectAsmPrinter::printType ( Type  type)
pure virtual

Print the given type to the stream.


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