PIPS
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "genC.h"
#include "linear.h"
#include "misc.h"
#include "ri.h"
#include "ri-util.h"
#include "prettyprint.h"
Go to the source code of this file.
Functions | |
static entity | make_data_field (basic b, const char *struct_name, const char *name, list dimensions) |
Helper for creating an allocatable structure. More... | |
static entity | make_bound (const char *struct_name, const char *lname, int suffix) |
entity | find_or_create_allocatable_struct (basic b, string name, int ndim) |
This function try to find the allocatable structure corresponding to the number of dimensions requested, and create it if necessary. More... | |
This function try to find the allocatable structure corresponding to the number of dimensions requested, and create it if necessary.
Warning! Do not modify this file that is automatically generated!
name | is the name of the array (prettyprint name) |
name | ame |
ndim | dim |
Definition at line 97 of file allocatable.c.
References ALLOCATABLE_LBOUND_PREFIX, ALLOCATABLE_PREFIX, ALLOCATABLE_UBOUND_PREFIX, asprintf, CAR, concatenate(), CONS, DIMENSION, ENTITY, entity_initial, entity_storage, entity_to_expression(), entity_type, entity_undefined, FindEntity(), FindOrCreateTopLevelEntity(), free(), make_bound(), make_data_field(), make_dimension(), make_storage_rom(), make_type_struct(), make_value_unknown(), NIL, pips_assert, printf(), strdup(), STRING, STRUCT_PREFIX, TOP_LEVEL_MODULE_NAME, and words_basic().
Referenced by gfc2pips_getbasic(), and gfc2pips_symbol2entity().
Definition at line 65 of file allocatable.c.
References asprintf, entity_domain, entity_initial, entity_storage, entity_type, entity_undefined, FindOrCreateTopLevelEntity(), free(), gen_find_tabulated(), lname(), make_basic_int(), make_storage_rom(), make_type_variable(), make_value_unknown(), make_variable(), MEMBER_SEP_STRING, and pips_assert.
Referenced by find_or_create_allocatable_struct().
|
static |
Helper for creating an allocatable structure.
Here we create the field corresponding to the data array.
Definition at line 45 of file allocatable.c.
References asprintf, entity_initial, entity_storage, entity_type, entity_undefined, FindEntity(), FindOrCreateTopLevelEntity(), free(), make_storage_rom(), make_type_variable(), make_value_unknown(), make_variable(), MEMBER_SEP_STRING, pips_assert, and TOP_LEVEL_MODULE_NAME.
Referenced by find_or_create_allocatable_struct().