My Project
Public Types | Public Member Functions | Static Public Member Functions | List of all members
mlir::OperationName Class Reference

#include <OperationSupport.h>

Public Types

using RepresentationUnion = PointerUnion< Identifier, const AbstractOperation * >
 

Public Member Functions

 OperationName (AbstractOperation *op)
 
 OperationName (StringRef name, MLIRContext *context)
 
StringRef getDialect () const
 Return the name of the dialect this operation is registered to. More...
 
StringRef getStringRef () const
 Return the name of this operation. This always succeeds. More...
 
const AbstractOperationgetAbstractOperation () const
 
void print (raw_ostream &os) const
 
void dump () const
 
void * getAsOpaquePointer () const
 

Static Public Member Functions

static OperationName getFromOpaquePointer (void *pointer)
 

Member Typedef Documentation

◆ RepresentationUnion

Constructor & Destructor Documentation

◆ OperationName() [1/2]

mlir::OperationName::OperationName ( AbstractOperation op)
inline

◆ OperationName() [2/2]

OperationName::OperationName ( StringRef  name,
MLIRContext context 
)

Form the OperationName for an op with the specified string. This either is a reference to an AbstractOperation if one is known, or a uniqued Identifier if not.

Member Function Documentation

◆ dump()

void OperationName::dump ( ) const

◆ getAbstractOperation()

const AbstractOperation * OperationName::getAbstractOperation ( ) const

If this operation has a registered operation description, return it. Otherwise return null.

◆ getAsOpaquePointer()

void* mlir::OperationName::getAsOpaquePointer ( ) const
inline

◆ getDialect()

StringRef OperationName::getDialect ( ) const

Return the name of the dialect this operation is registered to.

◆ getFromOpaquePointer()

OperationName OperationName::getFromOpaquePointer ( void *  pointer)
static

◆ getStringRef()

StringRef OperationName::getStringRef ( ) const

Return the name of this operation. This always succeeds.

◆ print()

void OperationName::print ( raw_ostream &  os) const

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