10#ifndef MLIR_LIB_CONVERSION_TOSATOLINALG_TOSATOLINALGUTILS_H
11#define MLIR_LIB_CONVERSION_TOSATOLINALG_TOSATOLINALGUTILS_H
30 RankedTensorType outputType,
36 RankedTensorType targetType);
This class defines the main interface for locations in MLIR and acts as a non-nullable wrapper around...
A special type of RewriterBase that coordinates the application of a rewrite pattern on the current I...
Instances of the Type class are uniqued, have an immutable identifier and an optional mutable compone...
This class represents an instance of an SSA value in the MLIR system, representing a computable value...
Value truncateToOutputType(PatternRewriter &rewriter, Location loc, Value input, RankedTensorType targetType)
Truncate an FP32 tensor to BF16 without changing shape or encoding.
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...
Type getAccumulationType(Type requestedType)
Include the generated interface declarations.