#include "BuiltinDialectBytecode.h"
#include "AttributeDetail.h"
#include "mlir/Bytecode/BytecodeImplementation.h"
#include "mlir/IR/BuiltinAttributes.h"
#include "mlir/IR/BuiltinDialect.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/DialectResourceBlobManager.h"
#include "llvm/ADT/TypeSwitch.h"
usingnamespacemlir;
namespace {
static unsigned getIntegerBitWidth(DialectBytecodeReader &reader, Type type) { … }
static LogicalResult readAPIntWithKnownWidth(DialectBytecodeReader &reader,
Type type, FailureOr<APInt> &val) { … }
static LogicalResult
readAPFloatWithKnownSemantics(DialectBytecodeReader &reader, Type type,
FailureOr<APFloat> &val) { … }
LogicalResult
readPotentiallySplatString(DialectBytecodeReader &reader, ShapedType type,
bool isSplat,
SmallVectorImpl<StringRef> &rawStringData) { … }
void writePotentiallySplatString(DialectBytecodeWriter &writer,
DenseStringElementsAttr attr) { … }
#include "mlir/IR/BuiltinDialectBytecode.cpp.inc"
struct BuiltinDialectBytecodeInterface : public BytecodeDialectInterface { … };
}
void builtin_dialect_detail::addBytecodeInterface(BuiltinDialect *dialect) { … }