9#ifndef MLIR_IR_BUILTINTYPEINTERFACES_H
10#define MLIR_IR_BUILTINTYPEINTERFACES_H
35 llvm::SmallVectorImpl<char> &
result);
39llvm::APInt
readBits(
const char *rawData,
size_t bitPos,
size_t bitWidth);
43void writeBits(
char *rawData,
size_t bitPos, llvm::APInt value);
47#include "mlir/IR/BuiltinTypeInterfaces.h.inc"
48#include "mlir/IR/OpAsmTypeInterface.h.inc"
MLIRContext is the top-level object for a collection of MLIR operations.
The OpAsmOpInterface, see OpAsmInterface.td for more details.
llvm::APInt readBits(const char *rawData, size_t bitPos, size_t bitWidth)
Read bitWidth bits from byte-aligned position in rawData and return as an APInt.
LogicalResult convertFloatTypeFromAttribute(Type type, Attribute attr, llvm::SmallVectorImpl< char > &result)
Float type implementation of DenseElementTypeInterface::convertFromAttribute.
size_t getFloatTypeDenseElementBitSize(Type type)
Float type implementation of DenseElementTypeInterface::getDenseElementBitSize.
Attribute convertFloatTypeToAttribute(Type type, llvm::ArrayRef< char > rawData)
Float type implementation of DenseElementTypeInterface::convertToAttribute.
void writeBits(char *rawData, size_t bitPos, llvm::APInt value)
Write value to byte-aligned position bitPos in rawData.
Include the generated interface declarations.