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"
Go to the source code of this file.
Functions | |
bool | entity_allocatable_p (entity e) |
Check if an entity is an allocatable. More... | |
bool | expression_allocatable_data_access_p (expression e) |
Check if an expression is a reference to an allocatable array. More... | |
expression | get_allocatable_data_expr (entity e) |
This function produce an expression that is an access to the array inside the allocatable structure. More... | |
entity | get_allocatable_data_entity (entity e) |
Get the entity inside the struct corresponding to the array, mostly for correct prettyprint. More... | |
Check if an entity is an allocatable.
allocatable.c
Definition at line 72 of file allocatable.c.
References ALLOCATABLE_PREFIX, basic_derived, basic_derived_p, entity_local_name(), entity_type, same_stringn_p, STRUCT_PREFIX, type_variable, type_variable_p, and variable_basic.
Referenced by expression_allocatable_data_access_p(), get_allocatable_data_entity(), get_allocatable_data_expr(), and gfc2pips_expr2expression().
bool expression_allocatable_data_access_p | ( | expression | e | ) |
Check if an expression is a reference to an allocatable array.
Definition at line 95 of file allocatable.c.
References ALLOCATABLE_LBOUND_PREFIX, ALLOCATABLE_UBOUND_PREFIX, call_arguments, call_function, CAR, CDR, ENDP, entity_allocatable_p(), ENTITY_FIELD_P, entity_user_name(), expression_call(), expression_call_p(), expression_reference(), pips_assert, reference_indices, reference_variable, and same_stringn_p.
Referenced by ensure_comment_consistency().
Get the entity inside the struct corresponding to the array, mostly for correct prettyprint.
Definition at line 157 of file allocatable.c.
References basic_derived, CAR, entity_allocatable_p(), entity_type, pips_assert, type_struct, type_variable, and variable_basic.
Referenced by get_allocatable_data_expr(), and text_entity_declaration().
expression get_allocatable_data_expr | ( | entity | e | ) |
This function produce an expression that is an access to the array inside the allocatable structure.
Definition at line 141 of file allocatable.c.
References CreateIntrinsic(), entity_allocatable_p(), entity_to_expression(), FIELD_OPERATOR_NAME, get_allocatable_data_entity(), MakeBinaryCall(), and pips_assert.
Referenced by gfc2pips_expr2expression().