MLIR  20.0.0git
Namespaces | Functions
ConversionUtils.h File Reference
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/Dialect/Tensor/IR/Tensor.h"
#include "mlir/Dialect/Tosa/Utils/ShapeUtils.h"
#include "mlir/Dialect/Utils/StructuredOpsUtils.h"
#include "mlir/IR/ImplicitLocOpBuilder.h"
#include "mlir/IR/PatternMatch.h"
#include <optional>

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::tosa
 

Functions

SmallVector< utils::IteratorType > mlir::tosa::getNParallelLoopsAttrs (unsigned nParallelLoops)
 
SmallVector< Valuemlir::tosa::condenseValues (const SmallVector< Value > &values)
 
Value mlir::tosa::clampFloatHelper (Location loc, Value arg, Value min, Value max, OpBuilder &rewriter)
 
Value mlir::tosa::clampIntHelper (Location loc, Value arg, Value min, Value max, OpBuilder &rewriter, bool isUnsigned)
 
bool mlir::tosa::validIntegerRange (IntegerType ty, int64_t value)
 
template<typename Op >
std::optional< SmallVector< Value > > mlir::tosa::checkHasDynamicBatchDims (PatternRewriter &rewriter, Op op, ArrayRef< Value > params)
 
LogicalResult mlir::tosa::EqualizeRanks (PatternRewriter &rewriter, Location loc, Value &input1, Value &input2)
 Common code to create the reshape op where necessary to make the rank of two values equal. More...
 
LogicalResult mlir::tosa::EqualizeRanks (ImplicitLocOpBuilder &builder, Value &input1, Value &input2)
 
template<typename TosaOp , typename... Args>
TosaOp mlir::tosa::CreateOpAndInferShape (ImplicitLocOpBuilder &builder, Type resultTy, Args &&...args)
 
template<typename TosaOp , typename... Args>
TosaOp mlir::tosa::CreateOpAndInferShape (PatternRewriter &rewriter, Location loc, Type resultTy, Args &&...args)
 
template<typename T >
SmallVector< T > mlir::tosa::applyTOSAPermutation (ArrayRef< T > input, ArrayRef< int32_t > perms)