MLIR 23.0.0git
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, const BytecodeWriterConfig &config)
auto getDialects ()
 Return the numbered dialects.
auto getAttributes ()
auto getOpNames ()
auto getTypes ()
unsigned getNumber (Attribute attr)
 Return the number for the given IR unit.
unsigned getNumber (Location loc)
unsigned getNumber (Block *block)
unsigned getNumber (Operation *op)
unsigned getNumber (OperationName opName)
unsigned getNumber (Type type)
unsigned getNumber (Value value)
unsigned getNumber (const AsmDialectResourceHandle &resource)
std::pair< unsigned, unsignedgetBlockValueCount (Region *region)
 Return the block and value counts of the given region.
unsigned getOperationCount (Block *block)
 Return the number of operations in the given block.
bool isIsolatedFromAbove (Operation *op)
 Return if the given operation is isolated from above.
int64_t getDesiredBytecodeVersion () const
 Get the set desired bytecode version to emit.

Detailed Description

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

Definition at line 152 of file IRNumbering.h.

Constructor & Destructor Documentation

◆ IRNumberingState()

Member Function Documentation

◆ getAttributes()

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

Definition at line 160 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 196 of file IRNumbering.h.

◆ getDesiredBytecodeVersion()

int64_t IRNumberingState::getDesiredBytecodeVersion ( ) const

Get the set desired bytecode version to emit.

Definition at line 572 of file IRNumbering.cpp.

◆ getDialects()

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

Return the numbered dialects.

Definition at line 157 of file IRNumbering.h.

◆ getNumber() [1/8]

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

Return the number for the given IR unit.

Definition at line 165 of file IRNumbering.h.

Referenced by getNumber().

◆ getNumber() [2/8]

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

Definition at line 170 of file IRNumbering.h.

◆ getNumber() [3/8]

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

Definition at line 190 of file IRNumbering.h.

◆ getNumber() [4/8]

unsigned IRNumberingState::getNumber ( Location loc)

Definition at line 202 of file IRNumbering.cpp.

References mlir::Location::getContext(), and getNumber().

◆ getNumber() [5/8]

unsigned mlir::bytecode::detail::IRNumberingState::getNumber ( Operation * op)
inline

Definition at line 174 of file IRNumbering.h.

◆ getNumber() [6/8]

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

Definition at line 178 of file IRNumbering.h.

◆ getNumber() [7/8]

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

Definition at line 182 of file IRNumbering.h.

◆ getNumber() [8/8]

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

Definition at line 186 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 202 of file IRNumbering.h.

◆ getOpNames()

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

Definition at line 161 of file IRNumbering.h.

◆ getTypes()

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

Definition at line 162 of file IRNumbering.h.

◆ isIsolatedFromAbove()

bool mlir::bytecode::detail::IRNumberingState::isIsolatedFromAbove ( Operation * op)
inline

Return if the given operation is isolated from above.

Definition at line 208 of file IRNumbering.h.

Referenced by IRNumberingState().


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