MLIR 22.0.0git
mlir::HyperrectangularSlice Class Reference

A hyperrectangular slice, represented as a list of offsets, sizes and strides. More...

#include "mlir/Interfaces/ValueBoundsOpInterface.h"

Public Member Functions

 HyperrectangularSlice (ArrayRef< OpFoldResult > offsets, ArrayRef< OpFoldResult > sizes, ArrayRef< OpFoldResult > strides)
 HyperrectangularSlice (ArrayRef< OpFoldResult > offsets, ArrayRef< OpFoldResult > sizes)
 Create a hyperrectangular slice with unit strides.
 HyperrectangularSlice (OffsetSizeAndStrideOpInterface op)
 Infer a hyperrectangular slice from OffsetSizeAndStrideOpInterface.
ArrayRef< OpFoldResultgetMixedOffsets () const
ArrayRef< OpFoldResultgetMixedSizes () const
ArrayRef< OpFoldResultgetMixedStrides () const

Detailed Description

A hyperrectangular slice, represented as a list of offsets, sizes and strides.

Definition at line 28 of file ValueBoundsOpInterface.h.

Constructor & Destructor Documentation

◆ HyperrectangularSlice() [1/3]

HyperrectangularSlice::HyperrectangularSlice ( ArrayRef< OpFoldResult > offsets,
ArrayRef< OpFoldResult > sizes,
ArrayRef< OpFoldResult > strides )

Definition at line 37 of file ValueBoundsOpInterface.cpp.

Referenced by HyperrectangularSlice().

◆ HyperrectangularSlice() [2/3]

HyperrectangularSlice::HyperrectangularSlice ( ArrayRef< OpFoldResult > offsets,
ArrayRef< OpFoldResult > sizes )

Create a hyperrectangular slice with unit strides.

Definition at line 47 of file ValueBoundsOpInterface.cpp.

◆ HyperrectangularSlice() [3/3]

HyperrectangularSlice::HyperrectangularSlice ( OffsetSizeAndStrideOpInterface op)

Infer a hyperrectangular slice from OffsetSizeAndStrideOpInterface.

Definition at line 59 of file ValueBoundsOpInterface.cpp.

References getMixedOffsets(), getMixedSizes(), getMixedStrides(), and HyperrectangularSlice().

Member Function Documentation

◆ getMixedOffsets()

ArrayRef< OpFoldResult > mlir::HyperrectangularSlice::getMixedOffsets ( ) const
inline

◆ getMixedSizes()

ArrayRef< OpFoldResult > mlir::HyperrectangularSlice::getMixedSizes ( ) const
inline

◆ getMixedStrides()

ArrayRef< OpFoldResult > mlir::HyperrectangularSlice::getMixedStrides ( ) const
inline

The documentation for this class was generated from the following files: