MLIR 24.0.0git
SliceReturnTypeCanonicalizer Struct Reference

Return the canonical type of the result of an extract_slice op. More...

Public Member Functions

RankedTensorType operator() (ExtractSliceOp op, ArrayRef< OpFoldResult > mixedOffsets, ArrayRef< OpFoldResult > mixedSizes, ArrayRef< OpFoldResult > mixedStrides)

Detailed Description

Return the canonical type of the result of an extract_slice op.

Note: offsets and strides are not needed to determine the result type of an extract_slice. The operator arguments are just there for interface compatibility.

Definition at line 2747 of file TensorOps.cpp.

Member Function Documentation

◆ operator()()

RankedTensorType SliceReturnTypeCanonicalizer::operator() ( ExtractSliceOp op,
ArrayRef< OpFoldResult > mixedOffsets,
ArrayRef< OpFoldResult > mixedSizes,
ArrayRef< OpFoldResult > mixedStrides )
inline

Definition at line 2748 of file TensorOps.cpp.

References mlir::tensor::inferSliceType().


The documentation for this struct was generated from the following file: