|
MLIR 22.0.0git
|
#include "mlir/Dialect/Quant/IR/Quant.h"#include "mlir/Dialect/Tensor/IR/Tensor.h"#include "mlir/Dialect/Tosa/IR/TosaOps.h"#include "mlir/Dialect/Tosa/Utils/ConversionUtils.h"#include "mlir/IR/BuiltinTypeInterfaces.h"#include "mlir/IR/BuiltinTypes.h"#include "mlir/IR/Matchers.h"#include "mlir/IR/PatternMatch.h"#include "mlir/Transforms/FoldUtils.h"#include "mlir/Transforms/InliningUtils.h"#include "llvm/ADT/APFloat.h"#include "llvm/ADT/APInt.h"#include <functional>Go to the source code of this file.
Classes | |
| struct | MaxPool2dIsNoOp |
| struct | ConcatOptimization |
| struct | ConsolidateTransposeOptimization |
| struct | TransposeIsReshape |
| struct | ClampIsNoOp |
| struct | ClampClampOptimization |
| struct | ClampClampOptimization::ClampRange< T > |
| struct | ConcatSliceOptimization |
| struct | PadSliceOptimization |
| struct | SliceDynamicSizeCanonicalization |
Macros | |
| #define | REDUCE_FOLDER(OP) |
Functions | |
| static bool | checkMatchingPadConstAndZp (Value padConst, Value zp) |
| template<typename IntFolder, typename FloatFolder> | |
| static DenseElementsAttr | binaryFolder (DenseElementsAttr lhs, DenseElementsAttr rhs, RankedTensorType returnTy) |
| static bool | isSplatZero (Type elemType, DenseElementsAttr val) |
| static bool | isSplatOne (Type elemType, DenseElementsAttr val, int64_t shift) |
| #define REDUCE_FOLDER | ( | OP | ) |
Definition at line 1305 of file TosaCanonicalizations.cpp.
|
static |
Definition at line 892 of file TosaCanonicalizations.cpp.
References mlir::DenseElementsAttr::get(), lhs, result, and rhs.
Definition at line 41 of file TosaCanonicalizations.cpp.
References mlir::DenseIntElementsAttr::begin(), mlir::m_Constant(), mlir::matchPattern(), and mlir::DenseElementsAttr::size().
|
static |
Definition at line 927 of file TosaCanonicalizations.cpp.
References mlir::DenseElementsAttr::getSplatValue(), and mlir::DenseElementsAttr::isSplat().
|
static |
Definition at line 919 of file TosaCanonicalizations.cpp.
References mlir::DenseElementsAttr::getSplatValue(), and mlir::DenseElementsAttr::isSplat().