MLIR
20.0.0git
|
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. 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 (Operation *op) |
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... | |
bool | isIsolatedFromAbove (Operation *op) |
Return if the given operation is isolated from above. More... | |
int64_t | getDesiredBytecodeVersion () const |
Get the set desired bytecode version to emit. More... | |
This class manages numbering IR entities in preparation of bytecode emission.
Definition at line 151 of file IRNumbering.h.
IRNumberingState::IRNumberingState | ( | Operation * | op, |
const BytecodeWriterConfig & | config | ||
) |
Definition at line 130 of file IRNumbering.cpp.
References mlir::detail::enumerate(), mlir::Region::getOps(), mlir::Operation::getRegions(), groupByDialectPerByte(), and isIsolatedFromAbove().
|
inline |
Definition at line 159 of file IRNumbering.h.
|
inline |
Return the block and value counts of the given region.
Definition at line 194 of file IRNumbering.h.
int64_t IRNumberingState::getDesiredBytecodeVersion | ( | ) | const |
Get the set desired bytecode version to emit.
Definition at line 555 of file IRNumbering.cpp.
Referenced by mlir::bytecode::detail::IRNumberingState::NumberingDialectWriter::getBytecodeVersion().
|
inline |
Return the numbered dialects.
Definition at line 156 of file IRNumbering.h.
|
inline |
Return the number for the given IR unit.
Definition at line 164 of file IRNumbering.h.
|
inline |
Definition at line 168 of file IRNumbering.h.
|
inline |
Definition at line 188 of file IRNumbering.h.
|
inline |
Definition at line 172 of file IRNumbering.h.
|
inline |
Definition at line 176 of file IRNumbering.h.
|
inline |
Definition at line 180 of file IRNumbering.h.
|
inline |
Definition at line 184 of file IRNumbering.h.
|
inline |
Return the number of operations in the given block.
Definition at line 200 of file IRNumbering.h.
|
inline |
Definition at line 160 of file IRNumbering.h.
|
inline |
Definition at line 161 of file IRNumbering.h.
|
inline |
Return if the given operation is isolated from above.
Definition at line 206 of file IRNumbering.h.
Referenced by IRNumberingState().