MLIR 24.0.0git
TosaToLinalgUtils.h
Go to the documentation of this file.
1//===- TosaToLinalgUtils.h - Shared TOSA to Linalg lowering utilities
2//-------===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef MLIR_LIB_CONVERSION_TOSATOLINALG_TOSATOLINALGUTILS_H
11#define MLIR_LIB_CONVERSION_TOSATOLINALG_TOSATOLINALGUTILS_H
12
14#include "mlir/IR/Value.h"
15
16namespace mlir {
17class PatternRewriter;
18
19namespace tosa {
25
26/// Broadcast the batch dimensions of the ranked operands and create a
27/// zero-filled result tensor for either MATMUL_T lowering pattern.
29 Value a, Value b,
30 RankedTensorType outputType,
31 bool transposeB);
32} // namespace tosa
33} // namespace mlir
34
35#endif // MLIR_LIB_CONVERSION_TOSATOLINALG_TOSATOLINALGUTILS_H
b
Return true if permutation is a valid permutation of the outer_dims_perm (case OuterOrInnerPerm::Oute...
This class defines the main interface for locations in MLIR and acts as a non-nullable wrapper around...
Definition Location.h:76
A special type of RewriterBase that coordinates the application of a rewrite pattern on the current I...
This class represents an instance of an SSA value in the MLIR system, representing a computable value...
Definition Value.h:96
MatMulTOperands prepareMatMulOperands(PatternRewriter &rewriter, Location loc, Value a, Value b, RankedTensorType outputType, bool transposeB)
Broadcast the batch dimensions of the ranked operands and create a zero-filled result tensor for eith...
Include the generated interface declarations.