pystencils.backend.ast.vector.PsVecMemAcc#
- class pystencils.backend.ast.vector.PsVecMemAcc(base_ptr, offset, vector_entries, stride=None, aligned=False)#
Pointer-based vectorized memory access.
- Parameters:
base_ptr (
PsExpression) – Pointer identifying the accessed memory regionoffset (
PsExpression) – Offset inside the memory regionvector_entries (
int) – Number of elements to accessstride (
Optional[PsExpression]) – Optional integer step size for strided access, orNonefor contiguous accessaligned (
bool) – For contiguous accesses, whether the access is guaranteed to be naturally aligned according to the vector data type
- get_children()#
Retrieve child nodes of this AST node
This operation must be implemented by subclasses.
- set_child(idx, c)#
Update a child node of this AST node.
This operation must be implemented by subclasses.
- _clone_expr()#
Implementation of expression cloning.
- Return type: