18 #include "llvm/ADT/StringRef.h"
19 #include "llvm/ADT/Twine.h"
20 #include "llvm/Support/MathExtras.h"
27 #include "mlir/Dialect/Quant/QuantOpsDialect.cpp.inc"
29 void QuantizationDialect::initialize() {
34 #include "mlir/Dialect/Quant/QuantOps.cpp.inc"
42 auto srcScastOp = getArg().getDefiningOp<StorageCastOp>();
43 if (!srcScastOp || srcScastOp.getArg().getType() != getType())
45 return srcScastOp.getArg();
48 #define GET_OP_CLASSES
49 #include "mlir/Dialect/Quant/QuantOps.cpp.inc"
This class represents a single result from folding an operation.
A quantized type that maps storage to/from expressed types in an unspecified way.
A quantized type that infers its range from given min/max values.
void addBytecodeInterface(QuantizationDialect *dialect)
Add the interfaces necessary for encoding the quantization dialect components in bytecode.
Include the generated interface declarations.