MLIR  17.0.0git
Classes | Public Member Functions | List of all members
mlir::bytecode::detail::IRNumberingState Class Reference

This class manages numbering IR entities in preparation of bytecode emission. More...

#include "Bytecode/Writer/IRNumbering.h"

Classes

struct  NumberingDialectWriter
 

Public Member Functions

 IRNumberingState (Operation *op)
 
auto getDialects ()
 Return the numbered dialects. More...
 
auto getAttributes ()
 
auto getOpNames ()
 
auto getTypes ()
 
unsigned getNumber (Attribute attr)
 Return the number for the given IR unit. More...
 
unsigned getNumber (Block *block)
 
unsigned getNumber (OperationName opName)
 
unsigned getNumber (Type type)
 
unsigned getNumber (Value value)
 
unsigned getNumber (const AsmDialectResourceHandle &resource)
 
std::pair< unsigned, unsigned > getBlockValueCount (Region *region)
 Return the block and value counts of the given region. More...
 
unsigned getOperationCount (Block *block)
 Return the number of operations in the given block. More...
 

Detailed Description

This class manages numbering IR entities in preparation of bytecode emission.

Definition at line 134 of file IRNumbering.h.

Constructor & Destructor Documentation

◆ IRNumberingState()

IRNumberingState::IRNumberingState ( Operation op)

Member Function Documentation

◆ getAttributes()

auto mlir::bytecode::detail::IRNumberingState::getAttributes ( )
inline

Definition at line 142 of file IRNumbering.h.

◆ getBlockValueCount()

std::pair<unsigned, unsigned> mlir::bytecode::detail::IRNumberingState::getBlockValueCount ( Region region)
inline

Return the block and value counts of the given region.

Definition at line 173 of file IRNumbering.h.

◆ getDialects()

auto mlir::bytecode::detail::IRNumberingState::getDialects ( )
inline

Return the numbered dialects.

Definition at line 139 of file IRNumbering.h.

◆ getNumber() [1/6]

unsigned mlir::bytecode::detail::IRNumberingState::getNumber ( Attribute  attr)
inline

Return the number for the given IR unit.

Definition at line 147 of file IRNumbering.h.

◆ getNumber() [2/6]

unsigned mlir::bytecode::detail::IRNumberingState::getNumber ( Block block)
inline

Definition at line 151 of file IRNumbering.h.

◆ getNumber() [3/6]

unsigned mlir::bytecode::detail::IRNumberingState::getNumber ( const AsmDialectResourceHandle resource)
inline

Definition at line 167 of file IRNumbering.h.

◆ getNumber() [4/6]

unsigned mlir::bytecode::detail::IRNumberingState::getNumber ( OperationName  opName)
inline

Definition at line 155 of file IRNumbering.h.

◆ getNumber() [5/6]

unsigned mlir::bytecode::detail::IRNumberingState::getNumber ( Type  type)
inline

Definition at line 159 of file IRNumbering.h.

◆ getNumber() [6/6]

unsigned mlir::bytecode::detail::IRNumberingState::getNumber ( Value  value)
inline

Definition at line 163 of file IRNumbering.h.

◆ getOperationCount()

unsigned mlir::bytecode::detail::IRNumberingState::getOperationCount ( Block block)
inline

Return the number of operations in the given block.

Definition at line 179 of file IRNumbering.h.

◆ getOpNames()

auto mlir::bytecode::detail::IRNumberingState::getOpNames ( )
inline

Definition at line 143 of file IRNumbering.h.

◆ getTypes()

auto mlir::bytecode::detail::IRNumberingState::getTypes ( )
inline

Definition at line 144 of file IRNumbering.h.


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