#include <stdlib.h>#include <stdio.h>#include <ctype.h>#include <string.h>#include <clan/scop.h>#include <clan/clan.h>#include <parser.h>
Functions | |
| scoplib_scop_p | clan_parse (FILE *, clan_options_p) |
| scoplib_scop_p | clan_scop_extract (FILE *input, clan_options_p options) |
| void | clan_scop_compact (scoplib_scop_p scop) |
| void | clan_scop_fill_options (scoplib_scop_p scop, int *localvars, int *liveoutvars) |
| scoplib_scop_p clan_parse | ( | FILE * | , | |
| clan_options_p | ||||
| ) |
clan_parse function: this function parses a file to extract a SCoP and returns, if successful, a pointer to the scoplib_scop_t structure.
| input | The file to parse (already open). | |
| options | Options for file parsing. |
References clan_parse_error, clan_parser_free_state(), clan_parser_initialize_state(), clan_scop_compact(), clan_scop_fill_options(), parser_scop, parser_variables_liveout, parser_variables_localvars, yyin, and yyparse().
Referenced by clan_scop_extract().
| void clan_scop_compact | ( | scoplib_scop_p | scop | ) |
clan_scop_compact function: This function scans the SCoP to put the right number of columns to every matrix (during construction we used CLAN_MAX_DEPTH and CLAN_MAX_PARAMETERS to define matrix and vector sizes).
| scop | The scop to scan to compact matrices. |
References clan_statement_compact().
Referenced by clan_parse().
| scoplib_scop_p clan_scop_extract | ( | FILE * | input, | |
| clan_options_p | options | |||
| ) |
clan_scop_extract function: this function is a wrapper clan_parse function that parses a file to extract a SCoP and returns, if successful, a pointer to the scoplib_scop_t structure.
| input | The file to parse (already open). | |
| options | Options for file parsing. |
References clan_parse().
Referenced by main().
| void clan_scop_fill_options | ( | scoplib_scop_p | scop, | |
| int * | localvars, | |||
| int * | liveoutvars | |||
| ) |
clan_scop_fill_options: This function stores the list of variables id in 'varlist' in the option tag of the scop, enclosed by <local-vars></local-vars>.
Referenced by clan_parse().
1.7.1