NAPA Compiler V4.50
Author: Yves Leduc, yves.leduc.be@gmail.com
|
Go to the source code of this file.
Macros | |
#define | EXTERN extern |
Functions | |
void | redefine_node_segments (void) |
void | separe_qualifiers (void) |
void | redefine_nodes (void) |
void | create_nodes (void) |
char * | create_constant_var (char *str, int type, const unsigned long *mlin, const unsigned long *mfil) |
void | create_automatic_node (const char *identifier, const unsigned long *mlin, const unsigned long *mfil) |
void | inject_nodes (void) |
void | redefine_random_seed (void) |
void | name_mangling (void) |
void | collect_functions (void) |
void | purge_constants_in_ganging (void) |
void | purge_constants_in_options (void) |
void | mark_directives (void) |
long | record_function_identifier (const char *tok, long m, const unsigned long *mlin, const unsigned long *mfil) |
void | stuck_nodes (void) |
void | process_init (void) |
void collect_functions | ( | void | ) |
Definition at line 1148 of file rd.c.
References ALGEBRA_KIND, CONST_KIND, DALGEBRA_KIND, DC_KIND, Directive_List, DROP_SEGMENT_TYPE, Dump_Flag, Dump_List, get_function_identifier(), IALGEBRA_KIND, Inject_List, IO_List, ISEMPTY, ISNOTEMPTY, Node_List, Num_Directives, Num_Injects, Num_IOs, Num_Nodes, Num_Opcodes, Num_Posts, Num_Segments, Num_Updates, Num_Vars, Opcode_List, OUTPUT_TYPE, Periodic_Flag, Post_List, record_function_identifier(), Sampling_List, Segment_List, STRING_DATA_TYPE, STRLENGTH, Terminate_List, TEST_KIND, Update_List, var_id(), and Var_List.
Referenced by main().
void create_automatic_node | ( | const char * | identifier, |
const unsigned long * | mlin, | ||
const unsigned long * | mfil ) |
Definition at line 897 of file rd.c.
References ANALOG_DATA_TYPE, DC_KIND, DIGITAL_DATA_TYPE, increment_node_number(), ITOB_KIND, LENGTH, MAXDEPTH, NO, node_id(), Node_List, Num_Creates, Num_Nodes, print_error_location(), process_node_error(), Segment_List, STDERR, strcpy_alloc(), STRLENGTH, UNDEFINED, and var_id().
Referenced by create_nodes().
char * create_constant_var | ( | char * | str, |
int | type, | ||
const unsigned long * | mlin, | ||
const unsigned long * | mfil ) |
Definition at line 848 of file rd.c.
References increment_const_number(), increment_var_number(), MAXDEPTH, Num_Consts, Num_Vars, strcpy_alloc(), STRLENGTH, and Var_List.
Referenced by purge_constants_in_ganging(), and purge_constants_in_options().
void create_nodes | ( | void | ) |
Definition at line 715 of file rd.c.
References create_automatic_node(), DROP_SEGMENT_TYPE, Dump_Flag, Dump_List, get_sign_and_token(), IO_List, ISEMPTY, Node_List, Num_IOs, Num_Nodes, Num_Records, Num_Segments, Num_Updates, Num_Vars, OUTPUT_TYPE, Periodic_Flag, print_error_location(), Record_List, Sampling_List, Segment_List, STDERR, STRLENGTH, Terminate_List, Update_List, and Var_List.
Referenced by main().
void inject_nodes | ( | void | ) |
Definition at line 1002 of file rd.c.
References Inject_Flag, Inject_List, node_id(), Node_List, Num_Injects, print_error_location(), process_node_error(), STDERR, UNDEFINED, and var_id().
Referenced by main().
void mark_directives | ( | void | ) |
Definition at line 1478 of file rd.c.
References ALGEBRA_KIND, DALGEBRA_KIND, DC_KIND, directive_id(), Directive_List, DROP_SEGMENT_TYPE, Dump_Flag, Dump_List, get_sign_and_token(), IALGEBRA_KIND, Inject_List, IO_List, ISEMPTY, Node_List, Num_Directives, Num_Injects, Num_IOs, Num_Nodes, Num_Opcodes, Num_Segments, Num_Updates, Num_Vars, Opcode_List, OUTPUT_TYPE, Periodic_Flag, Sampling_List, Segment_List, STRING_DATA_TYPE, STRLENGTH, Terminate_List, TEST_KIND, UNDEFINED, Update_List, var_id(), and Var_List.
Referenced by check_directive_usage().
void name_mangling | ( | void | ) |
Definition at line 1050 of file rd.c.
References Delayed_Flag, DTOOL_KIND, DUSER_KIND, get_sign_and_token(), increment_tool_number(), increment_usertool_number(), ISEMPTY, ITOOL_KIND, IUSER_KIND, MAXDEPTH, Node_List, Num_Nodes, Num_Tools, Num_UserTools, record_function_identifier(), strcpy_alloc(), STRLENGTH, Tool_Flag, UNDEFINED, User_Flag, UserTool_List, and usertool_num().
Referenced by main().
void process_init | ( | void | ) |
Definition at line 1735 of file rd.c.
References DELAY1_KIND, DELAY2_KIND, DELAY3_KIND, DELAY_KIND, get_sign_and_token(), node_id(), Node_List, Num_Vars, strcpy_realloc(), STRLENGTH, UNDEFINED, and Var_List.
Referenced by main().
void purge_constants_in_ganging | ( | void | ) |
Definition at line 1320 of file rd.c.
References ANALOG_DATA_TYPE, constant_type(), create_constant_var(), DIGITAL_DATA_TYPE, get_sign_and_token(), HEX_DATA_TYPE, ISEMPTY, LINLENGTH, Num_Records, Record_List, strcpy_realloc(), STRING_DATA_TYPE, and STRLENGTH.
Referenced by main().
void purge_constants_in_options | ( | void | ) |
Definition at line 1389 of file rd.c.
References ANALOG_DATA_TYPE, constant_type(), create_constant_var(), DIGITAL_DATA_TYPE, get_sign_and_token(), HEX_DATA_TYPE, LENGTH, Num_Posts, Num_UserTools, Post_List, print_error_location(), STDERR, strcpy_realloc(), STRLENGTH, and UserTool_List.
Referenced by main().
long record_function_identifier | ( | const char * | tok, |
long | m, | ||
const unsigned long * | mlin, | ||
const unsigned long * | mfil ) |
Definition at line 1656 of file rd.c.
References array_id(), Function_List, increment_function_number(), is_a_known_function(), node_id(), Num_Functions, print_error_location(), STDERR, strcpy_alloc(), UNDEFINED, and var_id().
Referenced by collect_functions(), get_node(), and name_mangling().
void redefine_node_segments | ( | void | ) |
Definition at line 58 of file rd.c.
References ALGEBRA_KIND, DALGEBRA_KIND, DTOOL_KIND, DUSER_KIND, get_token(), IALGEBRA_KIND, ISNOTEMPTY, ITOOL_KIND, IUSER_KIND, node_id(), Node_List, Num_Nodes, print_error_location(), process_node_error(), STDERR, strcpy_realloc(), STRLENGTH, TEST_KIND, and UNDEFINED.
Referenced by main().
void redefine_nodes | ( | void | ) |
Definition at line 350 of file rd.c.
References ALGEBRA_KIND, AND_KIND, AVERAGE_KIND, BUF_KIND, BWAND_KIND, BWINV_KIND, BWNAND_KIND, BWNOR_KIND, BWOR_KIND, BWXNOR_KIND, BWXOR_KIND, CHG_KIND, clean_parentheses(), CLOCK_KIND, COMP_KIND, COPY_KIND, DALGEBRA_KIND, DELAY1_KIND, DELAY2_KIND, DELAY3_KIND, DELAY_KIND, EQUAL_KIND, flag_node(), FZAND_KIND, FZBUF_KIND, FZINV_KIND, FZNAND_KIND, FZNOR_KIND, FZOR_KIND, FZXNOR_KIND, FZXOR_KIND, GAIN_KIND, get_sign_and_token(), get_token(), get_token_between_braces(), IALGEBRA_KIND, INV_KIND, ISEMPTY, ISNOTEMPTY, ISSMALL, ITOB_KIND, LATCH_KIND, MAX_KIND, MIN_KIND, MULLER_KIND, Multdelay_Flag, NAND_KIND, Node_List, NOISE_KIND, NOR_KIND, Num_Nodes, Num_Redefs, OR_KIND, OSC_KIND, print_error_location(), print_warning_location(), PROD_KIND, Segment_List, SIGN_KIND, SIN_KIND, STDERR, strcpy_realloc(), STRLENGTH, SUM_KIND, TEST_KIND, TOGGLE_KIND, TRIG_KIND, UNDEFINED, var_id(), Var_List, WSUM_KIND, XNOR_KIND, and XOR_KIND.
Referenced by main().
void redefine_random_seed | ( | void | ) |
void separe_qualifiers | ( | void | ) |
Definition at line 158 of file rd.c.
References ALGEBRA_KIND, AVERAGE_KIND, CHG_KIND, CONST_KIND, DALGEBRA_KIND, DC_KIND, DIV_KIND, DTOOL_KIND, DUSER_KIND, get_token(), IALGEBRA_KIND, ISEMPTY, ITOOL_KIND, IUSER_KIND, LENGTH, MOD_KIND, Node_List, Num_Nodes, RAM2_KIND, RAM_KIND, ROM2_KIND, ROM_KIND, strcpy_realloc(), STRLENGTH, TEST_KIND, and TRIG_KIND.
Referenced by main().
void stuck_nodes | ( | void | ) |
Definition at line 1689 of file rd.c.
References clean_parentheses(), DALGEBRA_KIND, DIGITAL_DATA_TYPE, Error_Flag, IALGEBRA_KIND, node_id(), Node_List, Num_Stucks, print_error_location(), process_node_error(), STDERR, strcpy_realloc(), Stuck_Flag, Stuck_List, UNDEFINED, and var_id().
Referenced by main().