#include <stdio.h>
#include <candl/matrix.h>
Go to the source code of this file.
Classes | |
struct | candlstatement |
Typedefs | |
typedef struct candlstatement | CandlStatement |
Functions | |
void | candl_statement_print_structure (FILE *, CandlStatement *, int) |
void | candl_statement_print (FILE *, CandlStatement *) |
void | candl_statement_free (CandlStatement *) |
CandlStatement * | candl_statement_read (FILE *, int, int) |
CandlStatement * | candl_statement_malloc () |
int | candl_statement_commute (CandlStatement *, CandlStatement *) |
typedef struct candlstatement CandlStatement |
int candl_statement_commute | ( | CandlStatement * | statement1, | |
CandlStatement * | statement2 | |||
) |
candl_statement_commute function: This function returns 1 if the two statements given as parameter commute, 0 otherwise. It uses the statement type information to answer the question.
References CANDL_M_REDUCTION, CANDL_P_REDUCTION, and CANDL_T_REDUCTION.
Referenced by candl_dependence_between().
void candl_statement_free | ( | CandlStatement * | statement | ) |
candl_statement_free function: This function frees the allocated memory for a CandlStatement structure.
References candlstatement::domain, candlstatement::index, candlstatement::read, and candlstatement::written.
Referenced by candl_program_free().
CandlStatement* candl_statement_malloc | ( | ) |
candl_statement_malloc function: This function allocates the memory space for a CandlStatement structure and sets its fields with default values. Then it returns a pointer to the allocated space.
References CANDL_UNSET, candlstatement::depth, candlstatement::domain, candlstatement::index, candlstatement::label, candlstatement::read, candlstatement::ref, candl_program::statement, candlstatement::type, and candlstatement::written.
Referenced by candl_program_convert_scop(), and candl_statement_read().
void candl_statement_print | ( | FILE * | file, | |
CandlStatement * | statement | |||
) |
candl_statement_print function: This function prints the content of a CandlStatement structure (statement) into a file (file, possibly stdout).
References candl_statement_print_structure().
void candl_statement_print_structure | ( | FILE * | , | |
CandlStatement * | , | |||
int | ||||
) |
CandlStatement* candl_statement_read | ( | FILE * | file, | |
int | label, | |||
int | nb_parameters | |||
) |
candl_statement_read function: This function reads statement data from a file (file) and puts them into a CandlStatement structure. This function returns a pointer to this structure.
References CANDL_AFFECTATION, CANDL_M_REDUCTION, CANDL_MAX_STRING, CANDL_P_REDUCTION, candl_statement_malloc(), CANDL_T_REDUCTION, candlstatement::depth, candlstatement::domain, candlstatement::index, candlstatement::label, candlstatement::read, candl_program::statement, candlstatement::type, and candlstatement::written.
Referenced by candl_program_read().