#include <alloca.h>#include <limits.h>#include "defs.h"#include "erglob.h"#include "mempool.h"#include "bitset.h"#include "ti_si.h"#include "ti_res_res.h"
Go to the source code of this file.
| #define TI_RES_RES_alloc_size | ( | t | ) | ((t)->alloc_size) |
Definition at line 79 of file ti_res_res.c.
Referenced by TI_RES_RES_Alloc(), and TI_RES_RES_Set_BB_Cycle_Count().
| #define TI_RES_RES_bad_iis | ( | t | ) | ((t)->bad_iis) |
Definition at line 84 of file ti_res_res.c.
Referenced by TI_RES_RES_Alloc(), TI_RES_RES_Has_TOP(), and TI_RES_RES_Is_Bad_II().
| #define TI_RES_RES_cyclic | ( | t | ) | ((t)->cyclic) |
Definition at line 80 of file ti_res_res.c.
Referenced by Check_Reserve_Loop_Control(), TI_RES_RES_Alloc(), TI_RES_RES_Resources_Relevant(), and TI_RES_RES_Set_BB_Cycle_Count().
| #define TI_RES_RES_length | ( | t | ) | ((t)->length) |
Definition at line 78 of file ti_res_res.c.
Referenced by Check_Reserve_Loop_Control(), TI_RES_RES_Alloc(), TI_RES_RES_Equal(), TI_RES_RES_Print(), TI_RES_RES_Resources_Equivalent(), TI_RES_RES_Resources_Grainy(), TI_RES_RES_Resources_Relevant(), and TI_RES_RES_Set_BB_Cycle_Count().
| #define TI_RES_RES_min_rr_length | ( | t | ) | ((t)->min_rr_length) |
Definition at line 82 of file ti_res_res.c.
Referenced by TI_RES_RES_Alloc(), TI_RES_RES_Has_TOP(), TI_RES_RES_Resources_Grainy(), and TI_RES_RES_Set_BB_Cycle_Count().
| #define TI_RES_RES_pool | ( | t | ) | ((t)->pool) |
Definition at line 76 of file ti_res_res.c.
Referenced by TI_RES_RES_Alloc(), TI_RES_RES_Has_TOP(), and TI_RES_RES_Set_BB_Cycle_Count().
| #define TI_RES_RES_rrtab | ( | t | ) | ((t)->rrtab) |
Definition at line 77 of file ti_res_res.c.
Referenced by TI_RES_RES_Equal(), TI_RES_RES_Print(), TI_RES_RES_Reserve_Resources(), TI_RES_RES_Resources_Available(), TI_RES_RES_Set_BB_Cycle_Count(), and TI_RES_RES_Unreserve_Resources().
| #define TI_RES_RES_si_ids | ( | t | ) | ((t)->si_ids) |
Definition at line 81 of file ti_res_res.c.
Referenced by TI_RES_RES_Alloc(), TI_RES_RES_Has_TOP(), and TI_RES_RES_Set_BB_Cycle_Count().
| #define TI_RES_RES_uncommon_res_ids | ( | t | ) | ((t)->uncommon_res_ids) |
Definition at line 83 of file ti_res_res.c.
Referenced by TI_RES_RES_Resources_Grainy(), TI_RES_RES_Resources_Relevant(), and TI_RES_RES_Set_BB_Cycle_Count().
| static void Check_Reserve_Loop_Control | ( | TI_RES_RES * | res, | |
| TOP | opcode, | |||
| INT | cycle, | |||
| SI_RR * | rr, | |||
| INT * | length1, | |||
| INT * | length2, | |||
| INT * | cycle_mod_ii | |||
| ) | [static] |
Definition at line 158 of file ti_res_res.c.
References Cycle_Mod_II(), SI_RR_Length(), TI_RES_RES_cyclic, TI_RES_RES_length, TSI_II_Resource_Requirement(), and TSI_Resource_Requirement().
Referenced by TI_RES_RES_Reserve_Resources(), TI_RES_RES_Resources_Available(), and TI_RES_RES_Unreserve_Resources().

Definition at line 101 of file ti_res_res.c.
Referenced by Check_Reserve_Loop_Control(), and TI_RES_RES_Resources_Relevant().
| TI_RES_RES* TI_RES_RES_Alloc | ( | BOOL | cyclic, | |
| MEM_POOL * | pool | |||
| ) |
Definition at line 284 of file ti_res_res.c.
References BS_Create_Empty(), SI_BAD_II_SET_Empty(), SI_ID_Count(), TI_RES_RES_alloc_size, TI_RES_RES_bad_iis, TI_RES_RES_cyclic, TI_RES_RES_length, TI_RES_RES_min_rr_length, TI_RES_RES_pool, TI_RES_RES_si_ids, and TYPE_MEM_POOL_ALLOC.

| BOOL TI_RES_RES_Equal | ( | TI_RES_RES * | res1, | |
| TI_RES_RES * | res2 | |||
| ) |
Definition at line 595 of file ti_res_res.c.
References FALSE, TI_RES_RES_length, and TI_RES_RES_rrtab.
| void TI_RES_RES_Has_TOP | ( | TI_RES_RES * | res, | |
| TOP | opcode | |||
| ) |
Definition at line 128 of file ti_res_res.c.
References BS_MemberP(), BS_Union1D(), SI_BAD_II_SET_Union(), SI_RR_Length(), TI_RES_RES_bad_iis, TI_RES_RES_min_rr_length, TI_RES_RES_pool, TI_RES_RES_si_ids, TSI_Bad_IIs(), TSI_Id(), and TSI_Resource_Requirement().

| BOOL TI_RES_RES_Is_Bad_II | ( | TI_RES_RES * | res, | |
| INT | ii | |||
| ) |
Definition at line 423 of file ti_res_res.c.
References SI_BAD_II_SET_MemberP(), and TI_RES_RES_bad_iis.

| void TI_RES_RES_Print | ( | FILE * | fp, | |
| TI_RES_RES * | res | |||
| ) |
Definition at line 587 of file ti_res_res.c.
References fprintf(), TI_RES_RES_length, and TI_RES_RES_rrtab.

| void TI_RES_RES_Reserve_Resources | ( | TI_RES_RES * | res, | |
| TOP | opcode, | |||
| INT | cycle | |||
| ) |
Definition at line 353 of file ti_res_res.c.
References Check_Reserve_Loop_Control(), SI_RR_Cycle_RRW(), SI_RRW_Reserve(), and TI_RES_RES_rrtab.

| BOOL TI_RES_RES_Resources_Available | ( | TI_RES_RES * | res, | |
| TOP | opcode, | |||
| INT | cycle | |||
| ) |
Definition at line 314 of file ti_res_res.c.
References Check_Reserve_Loop_Control(), SI_RR_Cycle_RRW(), SI_RRW_Has_Overuse(), SI_RRW_Reserve(), and TI_RES_RES_rrtab.

| BOOL TI_RES_RES_Resources_Equivalent | ( | TI_RES_RES * | res, | |
| TOP | opcode1, | |||
| TOP | opcode2 | |||
| ) |
Definition at line 518 of file ti_res_res.c.
References FALSE, SI_RR_Cycle_RRW(), SI_RR_Length(), TI_RES_RES_length, and TSI_II_Resource_Requirement().

| BOOL TI_RES_RES_Resources_Grainy | ( | TI_RES_RES * | res, | |
| TOP | opcode | |||
| ) |
Definition at line 550 of file ti_res_res.c.
References SI_RESOURCE_ID_SET_Intersection_Non_Empty(), SI_RR_Length(), TI_RES_RES_length, TI_RES_RES_min_rr_length, TI_RES_RES_uncommon_res_ids, TSI_II_Cycle_Resource_Ids_Used(), and TSI_II_Resource_Requirement().

| INT TI_RES_RES_Resources_Length | ( | TI_RES_RES * | res, | |
| TOP | opcode | |||
| ) |
Definition at line 578 of file ti_res_res.c.
References SI_RR_Length(), and TSI_Resource_Requirement().

| BOOL TI_RES_RES_Resources_Relevant | ( | TI_RES_RES * | res, | |
| TOP | opcode1, | |||
| TOP | opcode2, | |||
| INT | offset | |||
| ) |
Definition at line 440 of file ti_res_res.c.
References Cycle_Mod_II(), FmtAssert, SI_RESOURCE_ID_SET_Intersection4_Non_Empty(), SI_RR_Length(), TI_RES_RES_cyclic, TI_RES_RES_length, TI_RES_RES_uncommon_res_ids, TSI_II_Cycle_Resource_Ids_Used(), and TSI_II_Resource_Requirement().

| void TI_RES_RES_Set_BB_Cycle_Count | ( | TI_RES_RES * | res, | |
| INT | length | |||
| ) |
Definition at line 199 of file ti_res_res.c.
References BS_Choose(), BS_Choose_Next(), MIN, SI_ID_II_Cycle_Resource_Ids_Used(), SI_RESOURCE_ID_SET_Complement(), SI_RESOURCE_ID_SET_Intersection(), SI_RESOURCE_ID_SET_Universe(), SI_RRW_Initial(), TI_RES_RES_alloc_size, TI_RES_RES_cyclic, TI_RES_RES_length, TI_RES_RES_min_rr_length, TI_RES_RES_pool, TI_RES_RES_rrtab, TI_RES_RES_si_ids, TI_RES_RES_uncommon_res_ids, and TYPE_MEM_POOL_ALLOC_N.

| void TI_RES_RES_Unreserve_Resources | ( | TI_RES_RES * | res, | |
| TOP | opcode, | |||
| INT | cycle | |||
| ) |
Definition at line 388 of file ti_res_res.c.
References Check_Reserve_Loop_Control(), SI_RR_Cycle_RRW(), SI_RRW_Unreserve(), and TI_RES_RES_rrtab.

const char source_file[] = __FILE__ [static] |
Definition at line 36 of file ti_res_res.c.
1.7.1