#include "mlir/Dialect/Tosa/Utils/ConversionUtils.h"
#include "mlir/Dialect/Tosa/IR/TosaOps.h"
usingnamespacemlir;
usingnamespacemlir::tosa;
SmallVector<utils::IteratorType>
mlir::tosa::getNParallelLoopsAttrs(unsigned nParallelLoops) { … }
SmallVector<Value>
mlir::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) { … }
namespace {
LogicalResult
computeReshapeOutput(ArrayRef<int64_t> higherRankShape,
ArrayRef<int64_t> lowerRankShape,
SmallVectorImpl<int64_t> &reshapeOutputShape) { … }
}
LogicalResult mlir::tosa::EqualizeRanks(PatternRewriter &rewriter, Location loc,
Value &input1, Value &input2) { … }
LogicalResult mlir::tosa::EqualizeRanks(ImplicitLocOpBuilder &builder,
Value &input1, Value &input2) { … }