MLIR  19.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/Utils/StructuredOpsUtils.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 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...