MLIR  15.0.0git
Macros | Functions
QuantOps.cpp File Reference
#include "mlir/Dialect/Quant/QuantOps.h"
#include "TypeDetail.h"
#include "mlir/Dialect/Quant/QuantTypes.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/MLIRContext.h"
#include "mlir/IR/Matchers.h"
#include "mlir/IR/PatternMatch.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/MathExtras.h"
#include <numeric>
#include "mlir/Dialect/Quant/QuantOpsDialect.cpp.inc"
#include "mlir/Dialect/Quant/QuantOps.cpp.inc"
+ Include dependency graph for QuantOps.cpp:

Go to the source code of this file.

Macros

#define GET_OP_LIST
 
#define GET_OP_CLASSES
 

Functions

static bool isValidQuantizationSpec (Attribute quantSpec, Type expressed)
 The quantization specification should match the expressed type. More...
 

Macro Definition Documentation

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 134 of file QuantOps.cpp.

◆ GET_OP_LIST

#define GET_OP_LIST

Function Documentation

◆ isValidQuantizationSpec()

static bool isValidQuantizationSpec ( Attribute  quantSpec,
Type  expressed 
)
static

The quantization specification should match the expressed type.

Definition at line 47 of file QuantOps.cpp.

References mlir::Attribute::dyn_cast(), mlir::Type::dyn_cast(), mlir::Type::isa(), mlir::success(), vectorType(), and mlir::verify().