MLIR
20.0.0git
|
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... | |
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 130 of file MemRefBuilder.h.
|
explicit |
Constructs the view from a range of values.
Infers the rank from the size of the range.
Definition at line 271 of file MemRefBuilder.cpp.
Value MemRefDescriptorView::alignedPtr | ( | ) |
Returns the aligned pointer Value.
Definition at line 278 of file MemRefBuilder.cpp.
References kAlignedPtrPosInMemRefDescriptor.
Value MemRefDescriptorView::allocatedPtr | ( | ) |
Returns the allocated pointer Value.
Definition at line 274 of file MemRefBuilder.cpp.
References kAllocatedPtrPosInMemRefDescriptor.
Value MemRefDescriptorView::offset | ( | ) |
Returns the offset Value.
Definition at line 282 of file MemRefBuilder.cpp.
References kOffsetPosInMemRefDescriptor.
Value MemRefDescriptorView::size | ( | unsigned | pos | ) |
Returns the pos-th size Value.
Definition at line 286 of file MemRefBuilder.cpp.
References kSizePosInMemRefDescriptor.
Value MemRefDescriptorView::stride | ( | unsigned | pos | ) |
Returns the pos-th stride Value.
Definition at line 290 of file MemRefBuilder.cpp.
References kSizePosInMemRefDescriptor.