Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
ti_res_count.c File Reference
#include <stdio.h>
#include <math.h>
#include "defs.h"
#include "erglob.h"
#include "mempool.h"
#include "topcode.h"
#include "ti_si.h"
#include "ti_res_count.h"
Include dependency graph for ti_res_count.c:

Go to the source code of this file.

Classes

struct  ti_res_count

Defines

#define TI_RES_COUNT_bad_ii(r, i)   ((r)->bad_ii[(i)])
#define TI_RES_COUNT_vec(r, i)   ((r)->vec[(i)])

Functions

TI_RES_COUNTTI_RES_COUNT_Alloc (MEM_POOL *pool)
double TI_RES_COUNT_Min_Cycles (TI_RES_COUNT *res_counts)
INT32 TI_RES_COUNT_Min_II (TI_RES_COUNT *res_counts)
void TI_RES_COUNT_Add_Op_Resources (TI_RES_COUNT *res_counts, TOP opcode)
void TI_RES_COUNT_Add_Op_Resources_Scaled (TI_RES_COUNT *res_counts, TOP opcode, double factor)
void TI_RES_COUNT_Subtract_Op_Resources (TI_RES_COUNT *res_counts, TOP opcode)
void TI_RES_COUNT_Subtract_Op_Resources_Scaled (TI_RES_COUNT *res_counts, TOP opcode, double factor)
void TI_RES_COUNT_Add (TI_RES_COUNT *sum, TI_RES_COUNT *addend1, TI_RES_COUNT *addend2)
void TI_RES_COUNT_Subtract (TI_RES_COUNT *difference, TI_RES_COUNT *minuend, TI_RES_COUNT *subtrahend)
void TI_RES_COUNT_Print (FILE *fp, TI_RES_COUNT *res)
void TI_RES_COUNT_Emit_Note (const char *prefix, FILE *fp, TI_RES_COUNT *res, INT ii)

Variables

static const char source_file [] = __FILE__

Define Documentation


Function Documentation

void TI_RES_COUNT_Add ( TI_RES_COUNT sum,
TI_RES_COUNT addend1,
TI_RES_COUNT addend2 
)

Definition at line 72 of file ti_res_count.c.

References ti_res_count::bad_ii, bzero(), MEM_POOL_Zeroed, SI_resource_count, TYPE_MEM_POOL_ALLOC, TYPE_MEM_POOL_ALLOC_N, and ti_res_count::vec.

Here is the call graph for this function:

void TI_RES_COUNT_Emit_Note ( const char *  prefix,
FILE *  fp,
TI_RES_COUNT res,
INT  ii 
)

Definition at line 392 of file ti_res_count.c.

References fprintf(), SI_resource_count, SI_RESOURCE_ID_Avail_Per_Cycle(), SI_RESOURCE_ID_Name(), TI_RES_COUNT_vec, and usage().

Here is the call graph for this function:

double TI_RES_COUNT_Min_Cycles ( TI_RES_COUNT res_counts)

Definition at line 95 of file ti_res_count.c.

References SI_resource_count, SI_RESOURCE_ID_Avail_Per_Cycle(), and TI_RES_COUNT_vec.

Referenced by TI_RES_COUNT_Min_II().

Here is the call graph for this function:

Definition at line 121 of file ti_res_count.c.

References Is_True, SI_BAD_II_SET_MAX, TI_RES_COUNT_bad_ii, and TI_RES_COUNT_Min_Cycles().

Here is the call graph for this function:

void TI_RES_COUNT_Print ( FILE *  fp,
TI_RES_COUNT res 
)

Definition at line 360 of file ti_res_count.c.

References FALSE, fprintf(), SI_resource_count, SI_RESOURCE_ID_Avail_Per_Cycle(), SI_RESOURCE_ID_Name(), TI_RES_COUNT_vec, and TRUE.

Here is the call graph for this function:

void TI_RES_COUNT_Subtract ( TI_RES_COUNT difference,
TI_RES_COUNT minuend,
TI_RES_COUNT subtrahend 
)

Variable Documentation

const char source_file[] = __FILE__ [static]

Definition at line 37 of file ti_res_count.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines