MLIR  16.0.0git
Public Member Functions | List of all members
mlir::MemRefDescriptorView Class Reference

Helper class allowing the user to access a range of Values that correspond to an unpacked memref descriptor using named accessors. More...

#include "mlir/Conversion/LLVMCommon/MemRefBuilder.h"

Public Member Functions

 MemRefDescriptorView (ValueRange range)
 Constructs the view from a range of values. More...
 
Value allocatedPtr ()
 Returns the allocated pointer Value. More...
 
Value alignedPtr ()
 Returns the aligned pointer Value. More...
 
Value offset ()
 Returns the offset Value. More...
 
Value size (unsigned pos)
 Returns the pos-th size Value. More...
 
Value stride (unsigned pos)
 Returns the pos-th stride Value. More...
 

Detailed Description

Helper class allowing the user to access a range of Values that correspond to an unpacked memref descriptor using named accessors.

This does not own the values.

Definition at line 117 of file MemRefBuilder.h.

Constructor & Destructor Documentation

◆ MemRefDescriptorView()

MemRefDescriptorView::MemRefDescriptorView ( ValueRange  range)
explicit

Constructs the view from a range of values.

Infers the rank from the size of the range.

Definition at line 247 of file MemRefBuilder.cpp.

Member Function Documentation

◆ alignedPtr()

Value MemRefDescriptorView::alignedPtr ( )

Returns the aligned pointer Value.

Definition at line 254 of file MemRefBuilder.cpp.

References kAlignedPtrPosInMemRefDescriptor.

◆ allocatedPtr()

Value MemRefDescriptorView::allocatedPtr ( )

Returns the allocated pointer Value.

Definition at line 250 of file MemRefBuilder.cpp.

References kAllocatedPtrPosInMemRefDescriptor.

◆ offset()

Value MemRefDescriptorView::offset ( )

Returns the offset Value.

Definition at line 258 of file MemRefBuilder.cpp.

References kOffsetPosInMemRefDescriptor.

◆ size()

Value MemRefDescriptorView::size ( unsigned  pos)

Returns the pos-th size Value.

Definition at line 262 of file MemRefBuilder.cpp.

References kSizePosInMemRefDescriptor.

◆ stride()

Value MemRefDescriptorView::stride ( unsigned  pos)

Returns the pos-th stride Value.

Definition at line 266 of file MemRefBuilder.cpp.

References kSizePosInMemRefDescriptor.


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