Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
maxloc_gen.c File Reference
#include "f90_intrinsic.h"
Include dependency graph for maxloc_gen.c:

Go to the source code of this file.

Functions

static size_t read_source_desc (DopeVectorType *array, size_t src_extent[MAX_NARY_DIMS], size_t src_stride[MAX_NARY_DIMS], size_t src_offset[MAX_NARY_DIMS], int32_t ddim)
static void get_offset_and_stride (DopeVectorType *array, size_t src_extent[MAX_NARY_DIMS], size_t src_stride[MAX_NARY_DIMS], size_t src_offset[MAX_NARY_DIMS], int32_t ddim)
static int32_t read_dim (DopeVectorType *dim)
static void alloc_res (DopeVectorType *result, size_t src_extent[MAX_NARY_DIMS])
static void update_resloc (DopeVectorType *result, int32_t src_rank, size_t src_stride[MAX_NARY_DIMS], char *newaddr, char *base)
void _MAXLOC__I1 (DopeVectorType *result, DopeVectorType *array, DopeVectorType *dim, DopeVectorType *mask)
void _MAXLOC__I2 (DopeVectorType *result, DopeVectorType *array, DopeVectorType *dim, DopeVectorType *mask)
void _MAXLOC__I4 (DopeVectorType *result, DopeVectorType *array, DopeVectorType *dim, DopeVectorType *mask)
void _MAXLOC__J (DopeVectorType *result, DopeVectorType *array, DopeVectorType *dim, DopeVectorType *mask)
void _MAXLOC__S4 (DopeVectorType *result, DopeVectorType *array, DopeVectorType *dim, DopeVectorType *mask)
void _MAXLOC__S (DopeVectorType *result, DopeVectorType *array, DopeVectorType *dim, DopeVectorType *mask)
void _MAXLOC__D (DopeVectorType *result, DopeVectorType *array, DopeVectorType *dim, DopeVectorType *mask)

Function Documentation

static void get_offset_and_stride ( DopeVectorType array,
size_t  src_extent[MAX_NARY_DIMS],
size_t  src_stride[MAX_NARY_DIMS],
size_t  src_offset[MAX_NARY_DIMS],
int32_t  ddim 
) [static]

Definition at line 1546 of file maxloc_gen.c.

References GET_RANK_FROM_DESC, and GET_STRIDE_FROM_DESC().

Referenced by _MAXLOC__D(), _MAXLOC__I1(), _MAXLOC__I2(), _MAXLOC__I4(), _MAXLOC__J(), _MAXLOC__S(), _MAXLOC__S4(), and read_source_desc().

Here is the call graph for this function:

static int32_t read_dim ( DopeVectorType dim) [static]
static size_t read_source_desc ( DopeVectorType array,
size_t  src_extent[MAX_NARY_DIMS],
size_t  src_stride[MAX_NARY_DIMS],
size_t  src_offset[MAX_NARY_DIMS],
int32_t  ddim 
) [static]

Definition at line 1519 of file maxloc_gen.c.

References GET_EXTENT_FROM_DESC, get_offset_and_stride(), and GET_RANK_FROM_DESC.

Referenced by _MAXLOC__D(), _MAXLOC__I1(), _MAXLOC__I2(), _MAXLOC__I4(), _MAXLOC__J(), _MAXLOC__S(), and _MAXLOC__S4().

Here is the call graph for this function:

static void update_resloc ( DopeVectorType result,
int32_t  src_rank,
size_t  src_stride[MAX_NARY_DIMS],
char *  newaddr,
char *  base 
) [static]

Definition at line 1568 of file maxloc_gen.c.

References GET_ADDRESS_FROM_DESC, GET_ELEMENT_SZ_FROM_DESC, GET_STRIDE_FROM_DESC(), and stride.

Referenced by _MAXLOC__D(), _MAXLOC__I1(), _MAXLOC__I2(), _MAXLOC__I4(), _MAXLOC__J(), _MAXLOC__S(), and _MAXLOC__S4().

Here is the call graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines