|
MLIR 24.0.0git
|
#include "TosaToLinalgUtils.h"#include "mlir/Conversion/TosaToLinalg/TosaToLinalg.h"#include "mlir/Dialect/Arith/IR/Arith.h"#include "mlir/Dialect/Arith/Utils/Utils.h"#include "mlir/Dialect/Linalg/IR/Linalg.h"#include "mlir/Dialect/Math/IR/Math.h"#include "mlir/Dialect/Tensor/IR/Tensor.h"#include "mlir/Dialect/Tosa/IR/TosaOps.h"#include "mlir/Dialect/Tosa/Utils/ConversionUtils.h"#include "mlir/Dialect/Utils/ReshapeOpsUtils.h"#include "mlir/IR/Matchers.h"#include "mlir/IR/PatternMatch.h"#include "mlir/Transforms/DialectConversion.h"#include "llvm/ADT/SmallVectorExtras.h"#include "llvm/ADT/TypeSwitch.h"#include <optional>#include <type_traits>Go to the source code of this file.
|
static |
Definition at line 160 of file TosaToLinalgNamed.cpp.
References mlir::Builder::getIndexAttr(), and mlir::Value::getType().
|
static |
Definition at line 357 of file TosaToLinalgNamed.cpp.
References mlir::Builder::getAffineDimExpr().
|
static |
Definition at line 217 of file TosaToLinalgNamed.cpp.
References mlir::AffineMap::get(), mlir::Builder::getAffineConstantExpr(), mlir::Builder::getAffineDimExpr(), mlir::Builder::getContext(), mlir::Value::getType(), and result.
Referenced by linalgBroadcastAndMaybeExt().
|
static |
Definition at line 290 of file TosaToLinalgNamed.cpp.
References mlir::Value::getType(), and reifyConstantDim().
Referenced by inferDynamicDimsForConv().
|
static |
Definition at line 42 of file TosaToLinalgNamed.cpp.
References mlir::DenseElementsAttr::getValues(), mlir::Type::isInteger(), mlir::Type::isSignlessInteger(), mlir::m_Constant(), and mlir::matchPattern().
Referenced by mlir::tosa::isConvertibleToLinalgElementwise().
|
static |
Definition at line 316 of file TosaToLinalgNamed.cpp.
References mlir::tosa::condenseValues(), getConvOrPoolOutputDim(), and mlir::Value::getType().
|
static |
Definition at line 248 of file TosaToLinalgNamed.cpp.
References getBroadcastingMap(), mlir::Builder::getMultiDimIdentityMap(), mlir::tosa::getNParallelLoopsAttrs(), mlir::Value::getType(), result, and ValueRange.
|
static |
Definition at line 194 of file TosaToLinalgNamed.cpp.
References mlir::tosa::getNParallelLoopsAttrs(), mlir::Value::getType(), result, and ValueRange.
|
static |
Definition at line 281 of file TosaToLinalgNamed.cpp.
References mlir::arith::ConstantIndexOp::create().
Referenced by getConvOrPoolOutputDim().