#include "IRNumbering.h"
#include "mlir/Bytecode/BytecodeImplementation.h"
#include "mlir/Bytecode/BytecodeOpInterface.h"
#include "mlir/Bytecode/BytecodeWriter.h"
#include "mlir/Bytecode/Encoding.h"
#include "mlir/IR/AsmState.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/OpDefinition.h"
usingnamespacemlir;
usingnamespacemlir::bytecode::detail;
struct IRNumberingState::NumberingDialectWriter : public DialectBytecodeWriter { … };
template <typename T>
static void groupByDialectPerByte(T range) { … }
IRNumberingState::IRNumberingState(Operation *op,
const BytecodeWriterConfig &config)
: … { … }
void IRNumberingState::computeGlobalNumberingState(Operation *rootOp) { … }
void IRNumberingState::number(Attribute attr) { … }
void IRNumberingState::number(Block &block) { … }
auto IRNumberingState::numberDialect(Dialect *dialect) -> DialectNumbering & { … }
auto IRNumberingState::numberDialect(StringRef dialect) -> DialectNumbering & { … }
void IRNumberingState::number(Region ®ion) { … }
void IRNumberingState::number(Operation &op) { … }
void IRNumberingState::number(OperationName opName) { … }
void IRNumberingState::number(Type type) { … }
void IRNumberingState::number(Dialect *dialect,
ArrayRef<AsmDialectResourceHandle> resources) { … }
int64_t IRNumberingState::getDesiredBytecodeVersion() const { … }
namespace {
struct NumberingResourceBuilder : public AsmResourceBuilder { … };
}
void IRNumberingState::finalizeDialectResourceNumberings(Operation *rootOp) { … }