Classes | Typedefs | Functions

statement.h File Reference

#include <stdio.h>
#include <candl/matrix.h>
Include dependency graph for statement.h:
This graph shows which files directly or indirectly include this file:

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 *)
CandlStatementcandl_statement_read (FILE *, int, int)
CandlStatementcandl_statement_malloc ()
int candl_statement_commute (CandlStatement *, CandlStatement *)

Typedef Documentation


Function Documentation

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.

  • 09/12/2005: first version.

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.

  • 09/09/2003: first version.

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.

  • 09/12/2005: first version.

References 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).

  • 09/09/2003: first version.

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.

  • label is the statement number ;
  • nb_parameters is the number of parameters.
  • 09/09/2003: first version.

References CANDL_MAX_STRING, candl_statement_malloc(), candlstatement::depth, candlstatement::domain, candlstatement::index, candlstatement::label, candlstatement::read, candl_program::statement, candlstatement::type, and candlstatement::written.

Referenced by candl_program_read().