getVariableDimensionIndex() const If the shape is a variable array, return the array dimension index, (used for generating __sotoc_vla_dimX_ parameters in which the host signals the array's size).
llvm::StringRef
getConstantDimensionExpr() const If the shape is a constant array, it returns the rendered expression for the constant size.
a variable dimension of constant or variable size, or a pointer. We collect this information for every parameter of a target region function because the pretty printer does not support the output format for variable and types (e.g. it prints 'int ()[SIZE] a' instead of 'int () a[SIZE]'), so we print this manually in TargetCode.cpp. For this we need every pointer indirection and array dimension which each is saved as shapes for that variable.
Public Types Documentation
enum ShapeKind
Enumerator
Value
Description
Pointer
Paren
ConstantArray
VariableArray
Public Functions Documentation
function getKind
1
inlineShapeKindgetKind()const
function isVariableArray
1
inlineboolisVariableArray()const
function isConstantArray
1
inlineboolisConstantArray()const
function isArray
1
inlineboolisArray()const
function isPointer
1
inlineboolisPointer()const
function getVariableDimensionIndex
1
inlineunsignedintgetVariableDimensionIndex()const
If the shape is a variable array, return the array dimension index, (used for generating __sotoc_vla_dimX_ parameters in which the host signals the array's size).