1//===-- Passes.td - Quant pass definition file -------------*- tablegen -*-===// 2// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6// 7//===----------------------------------------------------------------------===// 8 9#ifndef MLIR_DIALECT_QUANT_PASSES 10#define MLIR_DIALECT_QUANT_PASSES 11 12include "mlir/Pass/PassBase.td" 13 14def QuantConvertConst : FunctionPass<"quant-convert-const"> { 15 let summary = "Converts constants followed by qbarrier to actual quantized " 16 "values"; 17 let constructor = "mlir::quant::createConvertConstPass()"; 18} 19 20def QuantConvertSimulatedQuant 21 : FunctionPass<"quant-convert-simulated-quantization"> { 22 let summary = "Converts training-time simulated quantization ops to " 23 "corresponding quantize/dequantize casts"; 24 let constructor = "mlir::quant::createConvertSimulatedQuantPass()"; 25} 26 27#endif // MLIR_DIALECT_QUANT_PASSES 28