osprey/libcif/cif_conv.c File Reference

#include <cif.h>
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "unitrecord.h"
#include "cif_int.h"
#include <sys/types.h>
#include <sys/stat.h>

Include dependency graph for cif_conv.c:

Go to the source code of this file.

Data Types

type  Id_tbl

Defines

#define CIF_VERSION   3
#define CIFCONV_INVALID_RECORDS   2
#define MEM_ERROR
#define OUT_ERROR(STR, FD, STATUS)
#define ID_BUMP   500
#define UTBUMP   100
#define HRECORDS   15
#define URECORDS   54

Enumerations

enum  Boolean { False, True }

Functions/Subroutines

static int sortfile (struct Cif_generic *)
static int copy_units (void)
static int write_header (void)
static int get_srcfid (void)
static int write_unit (int, enum Boolean, enum Boolean)
int cif_VerifyCanWrite (char *file)
static void free_copied_blocks ()
static int comp_callsite (struct Cif_callsite **, struct Cif_callsite **)
static int comp_comblk (struct Cif_comblk **, struct Cif_comblk **)
static int comp_const (struct Cif_const **, struct Cif_const **)
static int comp_entry (struct Cif_entry **, struct Cif_entry **)
static int comp_file (struct Cif_file **, struct Cif_file **)
static int comp_label (struct Cif_label **, struct Cif_label **)
static int comp_loop (struct Cif_loop **, struct Cif_loop **)
static int comp_message (struct Cif_message **, struct Cif_message **)
static int comp_namelist (struct Cif_namelist **, struct Cif_namelist **)
static int comp_object (struct Cif_object **, struct Cif_object **)
static int comp_stmt_type (struct Cif_stmt_type **, struct Cif_stmt_type **)
static int comp_usage (struct Cif_usage **, struct Cif_usage **)
static int comp_c_tag (struct Cif_c_tag **, struct Cif_c_tag **)
static int comp_c_message (struct Cif_c_message **, struct Cif_c_message **)
static int comp_c_const (struct Cif_c_const **, struct Cif_c_const **)
static int comp_c_entry (struct Cif_c_entry **, struct Cif_c_entry **)
static int comp_c_object (struct Cif_c_object **, struct Cif_c_object **)
static int comp_c_lint_directive (struct Cif_c_lint_directive **, struct Cif_c_lint_directive **)
static int comp_c_macro_def (struct Cif_c_macro_def **, struct Cif_c_macro_def **)
static int comp_c_macro_undef (struct Cif_c_macro_undef **, struct Cif_c_macro_undef **)
static int comp_c_macro_usage (struct Cif_c_macro_usage **, struct Cif_c_macro_usage **)
static int comp_c_entry_end (struct Cif_c_entry_end **, struct Cif_c_entry_end **)
static int comp_cdir (struct Cif_cdir **, struct Cif_cdir **)
static int comp_cdir_doshared (struct Cif_cdir_doshared **, struct Cif_cdir_doshared **)
static int comp_geometry (struct Cif_geometry **, struct Cif_geometry **)
static int comp_continuation (struct Cif_continuation **, struct Cif_continuation **)
static int comp_transform (struct Cif_transform **, struct Cif_transform **)
static int comp_f90_callsite (struct Cif_f90_callsite **, struct Cif_f90_callsite **)
static int comp_f90_comblk (struct Cif_f90_comblk **, struct Cif_f90_comblk **)
static int comp_f90_const (struct Cif_f90_const **, struct Cif_f90_const **)
static int comp_f90_entry (struct Cif_f90_entry **, struct Cif_f90_entry **)
static int comp_f90_loop (struct Cif_f90_loop **, struct Cif_f90_loop **)
static int comp_f90_derived_type (struct Cif_f90_derived_type **, struct Cif_f90_derived_type **)
static int comp_f90_label (struct Cif_f90_label **, struct Cif_f90_label **)
static int comp_f90_namelist (struct Cif_f90_namelist **, struct Cif_f90_namelist **)
static int comp_f90_object (struct Cif_f90_object **, struct Cif_f90_object **)
static int comp_f90_begin_scope (struct Cif_f90_begin_scope **, struct Cif_f90_begin_scope **)
static int comp_f90_end_scope (struct Cif_f90_end_scope **, struct Cif_f90_end_scope **)
static int comp_f90_scope_info (struct Cif_f90_scope_info **, struct Cif_f90_scope_info **)
static int comp_f90_use_module (struct Cif_f90_use_module **, struct Cif_f90_use_module **)
static int comp_f90_rename (struct Cif_f90_rename **, struct Cif_f90_rename **)
static int comp_f90_int_block (struct Cif_f90_int_block **, struct Cif_f90_int_block **)
static int comp_f90_vectorization (struct Cif_f90_vectorization **, struct Cif_f90_vectorization **)
static int comp_cc_type (struct Cif_cc_type **, struct Cif_cc_type **)
static int comp_cc_entry (struct Cif_cc_entry **, struct Cif_cc_entry **)
static int comp_cc_obj (struct Cif_cc_obj **, struct Cif_cc_obj **)
static int comp_cc_subtype (struct Cif_cc_subtype **, struct Cif_cc_subtype **)
static int comp_cc_enum (struct Cif_cc_enum **, struct Cif_cc_enum **)
static int comp_cc_expr (struct Cif_cc_expr **, struct Cif_cc_expr **)
static int comp_src_pos (struct Cif_src_pos **, struct Cif_src_pos **)
static int comp_orig_cmd (struct Cif_orig_cmd **, struct Cif_orig_cmd **)
static void addstruct (struct Cif_generic *)
static void addunit (struct Cif_generic *)
static void add_id (struct Id_tbl *, long)
static int comp_ids (long *, long *)
static long get_max_fid (void)
static long get_max_sid (void)
static void init_id (struct Id_tbl *)
static void makeudir (void)
static void remap_files (void)
static void remap_symbols (void)
static int later_date (char *file_1, char *file_2)
static int cif_next_entry (int cifd, long *cifpos, struct Cif_generic **cif_record)
static int cifconv_type (char *cif_name)
static char * Cif_Make_Cifconv (char *infile, char *outfile, int *rtypes)
void Cif_ConvDir (char *dir)
static char * concat (char *str1, char *str2)
int assertCanWriteDir (char *dir)
static char * cif_convert_to_cifconv (char *filename, int keep, int *tmp_cif, int *rtypes)
int Cif_Cifconv (char *filename, char *optype, int *rtypes, int version, int keep)
int Cif_Cifconv_V2_1 (char *filename, char *optype, int *rtypes, int version, int keep, int sub_version)
int Cif_Cifconv_V3_1 (char *filename, char *optype, int *rtypes, int version, int keep, int sub_version)
static struct Cif_genericcif_copy_record (struct Cif_generic *cifp)
static int comp_use (struct Cif_use *u1, struct Cif_use *u2)
static int merge_usages (void)
static long get_id (struct Id_tbl *idtp, long id)

Variables

static char USMID [] = "@(#) libcif/cif_conv.c 30.22 12/08/96 14:42:46"
static int lang
static int cifconv_return_code = 0
static int infd
static int outfd
static int tmpfd = -1
static char * tfile = NULL
static long fdirpos
static enum Boolean canpos = False
static int * global_nuses = (int *) NULL
static int global_nuses_allocated = 0
static enum Boolean Remap_id
static struct Id_tbl sid
static enum Boolean first_time = True
type {
   struct Cif_generic **   aptr
   int   psize
   int   next
patbl [CIF_MAXRECORD]
static char * global_outfile
static enum Boolean global_error_report = False
static const int pabump [CIF_MAXRECORD]
static int(* qcompare [CIF_MAXRECORD])()
static char * cif_tt_dir = (char *) NULL
static struct Cif_generic ** record_store = (struct Cif_generic **) NULL
static int current_store_record = 0
static int max_store_record = 0
static const int horder [HRECORDS]
static const int uorder [URECORDS]


Define Documentation

#define CIF_VERSION   3

Definition at line 49 of file cif_conv.c.

#define CIFCONV_INVALID_RECORDS   2

Definition at line 91 of file cif_conv.c.

#define HRECORDS   15

Definition at line 2198 of file cif_conv.c.

Referenced by write_header().

#define ID_BUMP   500

Definition at line 124 of file cif_conv.c.

Referenced by add_id(), and Cif_Make_Cifconv().

#define MEM_ERROR

Value:

{ \
  (void) fprintf (stderr, "libcif: %s\n", Cif_Errstring(CIF_NOMEM)); \
  exit (1); \
}

Definition at line 95 of file cif_conv.c.

Referenced by add_id(), addstruct(), addunit(), Cif_Make_Cifconv(), makeudir(), merge_usages(), and sortfile().

#define OUT_ERROR ( STR,
FD,
STATUS   ) 

Value:

{ \
  (void) fprintf (stderr, "libcif: error %s file %s - %s\n", \
    STR, (FD==outfd ? global_outfile : tfile), Cif_Errstring(STATUS)); \
  exit (STATUS); \
}

Definition at line 100 of file cif_conv.c.

Referenced by copy_units(), sortfile(), write_header(), and write_unit().

#define URECORDS   54

Definition at line 2283 of file cif_conv.c.

Referenced by write_unit().

#define UTBUMP   100

Referenced by addunit().


Enumeration Type Documentation

enum Boolean

Enumerator:
False 
True 

Definition at line 72 of file cif_conv.c.


Function Documentation

static void add_id ( struct Id_tbl idtp,
long  id 
) [static]

Definition at line 2519 of file cif_conv.c.

References Id_tbl::cur, ID_BUMP, Id_tbl::max, MEM_ERROR, NULL, realloc, and Id_tbl::tbl.

Referenced by remap_symbols().

static void addstruct ( struct Cif_generic cifp  )  [static]

static void addunit ( struct Cif_generic unitp  )  [static]

int assertCanWriteDir ( char *  dir  ) 

Definition at line 661 of file cif_conv.c.

References concat(), fclose(), fd, fopen, free(), mode, NULL, S_ISDIR, stat::st_mode, stat, and unlink.

Referenced by cif_convert_to_cifconv().

int Cif_Cifconv ( char *  filename,
char *  optype,
int *  rtypes,
int  version,
int  keep 
)

int Cif_Cifconv_V2_1 ( char *  filename,
char *  optype,
int *  rtypes,
int  version,
int  keep,
int  sub_version 
)

Definition at line 974 of file cif_conv.c.

References _cif_version, Cif_Cifconv(), and CIF_SUB_VERSION_2.

int Cif_Cifconv_V3_1 ( char *  filename,
char *  optype,
int *  rtypes,
int  version,
int  keep,
int  sub_version 
)

Definition at line 1000 of file cif_conv.c.

References _cif_version, Cif_Cifconv(), and CIF_SUB_VERSION_3.

void Cif_ConvDir ( char *  dir  ) 

Definition at line 632 of file cif_conv.c.

static char* cif_convert_to_cifconv ( char *  filename,
int  keep,
int *  tmp_cif,
int *  rtypes 
) [static]

static struct Cif_generic* cif_copy_record ( struct Cif_generic cifp  )  [static, read]

Definition at line 1027 of file cif_conv.c.

References Cif_Duplicate(), malloc, NULL, and realloc.

Referenced by sortfile().

static char* Cif_Make_Cifconv ( char *  infile,
char *  outfile,
int *  rtypes 
) [static]

static int cif_next_entry ( int  cifd,
long cifpos,
struct Cif_generic **  cif_record 
) [static]

Definition at line 415 of file cif_conv.c.

References Cif_Errstring(), Cif_Getpos(), Cif_Getrecord(), Cif_Setpos(), fprintf(), and void.

Referenced by cifconv_type(), and lines_type().

int cif_VerifyCanWrite ( char *  file  ) 

static int cifconv_type ( char *  cif_name  )  [static]

static int comp_c_const ( struct Cif_c_const **  p1,
struct Cif_c_const **  p2 
) [static]

Definition at line 1822 of file cif_conv.c.

static int comp_c_entry ( struct Cif_c_entry **  p1,
struct Cif_c_entry **  p2 
) [static]

Definition at line 1829 of file cif_conv.c.

static int comp_c_entry_end ( struct Cif_c_entry_end **  p1,
struct Cif_c_entry_end **  p2 
) [static]

Definition at line 1872 of file cif_conv.c.

static int comp_c_lint_directive ( struct Cif_c_lint_directive **  p1,
struct Cif_c_lint_directive **  p2 
) [static]

Definition at line 1843 of file cif_conv.c.

static int comp_c_macro_def ( struct Cif_c_macro_def **  p1,
struct Cif_c_macro_def **  p2 
) [static]

Definition at line 1850 of file cif_conv.c.

static int comp_c_macro_undef ( struct Cif_c_macro_undef **  p1,
struct Cif_c_macro_undef **  p2 
) [static]

Definition at line 1857 of file cif_conv.c.

static int comp_c_macro_usage ( struct Cif_c_macro_usage **  p1,
struct Cif_c_macro_usage **  p2 
) [static]

Definition at line 1865 of file cif_conv.c.

static int comp_c_message ( struct Cif_c_message **  p1,
struct Cif_c_message **  p2 
) [static]

Definition at line 1810 of file cif_conv.c.

References ret.

static int comp_c_object ( struct Cif_c_object **  p1,
struct Cif_c_object **  p2 
) [static]

Definition at line 1836 of file cif_conv.c.

static int comp_c_tag ( struct Cif_c_tag **  p1,
struct Cif_c_tag **  p2 
) [static]

Definition at line 1803 of file cif_conv.c.

static int comp_callsite ( struct Cif_callsite **  p1,
struct Cif_callsite **  p2 
) [static]

Definition at line 1459 of file cif_conv.c.

References ret.

static int comp_cc_entry ( struct Cif_cc_entry **  p1,
struct Cif_cc_entry **  p2 
) [static]

Definition at line 1886 of file cif_conv.c.

static int comp_cc_enum ( struct Cif_cc_enum **  p1,
struct Cif_cc_enum **  p2 
) [static]

Definition at line 1907 of file cif_conv.c.

static int comp_cc_expr ( struct Cif_cc_expr **  p1,
struct Cif_cc_expr **  p2 
) [static]

Definition at line 1914 of file cif_conv.c.

static int comp_cc_obj ( struct Cif_cc_obj **  p1,
struct Cif_cc_obj **  p2 
) [static]

Definition at line 1893 of file cif_conv.c.

static int comp_cc_subtype ( struct Cif_cc_subtype **  p1,
struct Cif_cc_subtype **  p2 
) [static]

Definition at line 1900 of file cif_conv.c.

static int comp_cc_type ( struct Cif_cc_type **  p1,
struct Cif_cc_type **  p2 
) [static]

Definition at line 1879 of file cif_conv.c.

static int comp_cdir ( struct Cif_cdir **  p1,
struct Cif_cdir **  p2 
) [static]

Definition at line 1739 of file cif_conv.c.

References ret.

static int comp_cdir_doshared ( struct Cif_cdir_doshared **  p1,
struct Cif_cdir_doshared **  p2 
) [static]

Definition at line 1753 of file cif_conv.c.

References ret.

static int comp_comblk ( struct Cif_comblk **  p1,
struct Cif_comblk **  p2 
) [static]

Definition at line 1475 of file cif_conv.c.

static int comp_const ( struct Cif_const **  p1,
struct Cif_const **  p2 
) [static]

Definition at line 1482 of file cif_conv.c.

Referenced by optimize_minmax_comparison().

static int comp_continuation ( struct Cif_continuation **  p1,
struct Cif_continuation **  p2 
) [static]

Definition at line 1776 of file cif_conv.c.

References ret.

static int comp_entry ( struct Cif_entry **  p1,
struct Cif_entry **  p2 
) [static]

Definition at line 1489 of file cif_conv.c.

static int comp_f90_begin_scope ( struct Cif_f90_begin_scope **  p1,
struct Cif_f90_begin_scope **  p2 
) [static]

Definition at line 1688 of file cif_conv.c.

static int comp_f90_callsite ( struct Cif_f90_callsite **  p1,
struct Cif_f90_callsite **  p2 
) [static]

Definition at line 1608 of file cif_conv.c.

References ret.

static int comp_f90_comblk ( struct Cif_f90_comblk **  p1,
struct Cif_f90_comblk **  p2 
) [static]

Definition at line 1624 of file cif_conv.c.

static int comp_f90_const ( struct Cif_f90_const **  p1,
struct Cif_f90_const **  p2 
) [static]

Definition at line 1631 of file cif_conv.c.

static int comp_f90_derived_type ( struct Cif_f90_derived_type **  p1,
struct Cif_f90_derived_type **  p2 
) [static]

Definition at line 1681 of file cif_conv.c.

static int comp_f90_end_scope ( struct Cif_f90_end_scope **  p1,
struct Cif_f90_end_scope **  p2 
) [static]

Definition at line 1695 of file cif_conv.c.

static int comp_f90_entry ( struct Cif_f90_entry **  p1,
struct Cif_f90_entry **  p2 
) [static]

Definition at line 1638 of file cif_conv.c.

static int comp_f90_int_block ( struct Cif_f90_int_block **  p1,
struct Cif_f90_int_block **  p2 
) [static]

Definition at line 1709 of file cif_conv.c.

static int comp_f90_label ( struct Cif_f90_label **  p1,
struct Cif_f90_label **  p2 
) [static]

Definition at line 1646 of file cif_conv.c.

static int comp_f90_loop ( struct Cif_f90_loop **  p1,
struct Cif_f90_loop **  p2 
) [static]

Definition at line 1653 of file cif_conv.c.

References ret.

static int comp_f90_namelist ( struct Cif_f90_namelist **  p1,
struct Cif_f90_namelist **  p2 
) [static]

Definition at line 1667 of file cif_conv.c.

static int comp_f90_object ( struct Cif_f90_object **  p1,
struct Cif_f90_object **  p2 
) [static]

Definition at line 1674 of file cif_conv.c.

static int comp_f90_rename ( struct Cif_f90_rename **  p1,
struct Cif_f90_rename **  p2 
) [static]

Definition at line 1723 of file cif_conv.c.

static int comp_f90_scope_info ( struct Cif_f90_scope_info **  p1,
struct Cif_f90_scope_info **  p2 
) [static]

Definition at line 1702 of file cif_conv.c.

static int comp_f90_use_module ( struct Cif_f90_use_module **  p1,
struct Cif_f90_use_module **  p2 
) [static]

Definition at line 1716 of file cif_conv.c.

static int comp_f90_vectorization ( struct Cif_f90_vectorization **  p1,
struct Cif_f90_vectorization **  p2 
) [static]

Definition at line 1730 of file cif_conv.c.

static int comp_file ( struct Cif_file **  p1,
struct Cif_file **  p2 
) [static]

Definition at line 1496 of file cif_conv.c.

static int comp_geometry ( struct Cif_geometry **  p1,
struct Cif_geometry **  p2 
) [static]

Definition at line 1768 of file cif_conv.c.

static int comp_ids ( long id1,
long id2 
) [static]

Definition at line 2537 of file cif_conv.c.

Referenced by remap_symbols().

static int comp_label ( struct Cif_label **  p1,
struct Cif_label **  p2 
) [static]

Definition at line 1503 of file cif_conv.c.

static int comp_loop ( struct Cif_loop **  p1,
struct Cif_loop **  p2 
) [static]

Definition at line 1510 of file cif_conv.c.

References ret.

static int comp_message ( struct Cif_message **  p1,
struct Cif_message **  p2 
) [static]

Definition at line 1524 of file cif_conv.c.

References ret.

static int comp_namelist ( struct Cif_namelist **  p1,
struct Cif_namelist **  p2 
) [static]

Definition at line 1538 of file cif_conv.c.

static int comp_object ( struct Cif_object **  p1,
struct Cif_object **  p2 
) [static]

Definition at line 1545 of file cif_conv.c.

static int comp_orig_cmd ( struct Cif_orig_cmd **  p1,
struct Cif_orig_cmd **  p2 
) [static]

Definition at line 1935 of file cif_conv.c.

static int comp_src_pos ( struct Cif_src_pos **  p1,
struct Cif_src_pos **  p2 
) [static]

Definition at line 1921 of file cif_conv.c.

References ret.

static int comp_stmt_type ( struct Cif_stmt_type **  p1,
struct Cif_stmt_type **  p2 
) [static]

Definition at line 1552 of file cif_conv.c.

References _cif_version, CIF_LG_F90, and ret.

static int comp_transform ( struct Cif_transform **  p1,
struct Cif_transform **  p2 
) [static]

Definition at line 1790 of file cif_conv.c.

References ret.

static int comp_usage ( struct Cif_usage **  p1,
struct Cif_usage **  p2 
) [static]

Definition at line 1580 of file cif_conv.c.

References i, int, and ret.

static int comp_use ( struct Cif_use u1,
struct Cif_use u2 
) [static]

Definition at line 2050 of file cif_conv.c.

References Cif_use::cpos, Cif_use::fid, Cif_use::line, and ret.

Referenced by merge_usages().

static char* concat ( char *  str1,
char *  str2 
) [static]

static int copy_units ( void   )  [static]

static void free_copied_blocks (  )  [static]

Definition at line 1049 of file cif_conv.c.

References Cif_Free(), and i.

Referenced by Cif_Make_Cifconv().

static long get_id ( struct Id_tbl idtp,
long  id 
) [static]

Definition at line 2551 of file cif_conv.c.

References Id_tbl::cur, fprintf(), global_error_report, global_outfile, Id_tbl::tbl, True, and void.

Referenced by comp_scope(), and remap_symbols().

static long get_max_fid ( void   )  [static]

Definition at line 3481 of file cif_conv.c.

References CIF_FILE, CIFFILE, and patbl.

Referenced by sortfile().

static long get_max_sid ( void   )  [static]

static int get_srcfid ( void   )  [static]

Definition at line 2261 of file cif_conv.c.

References CIF_SRCFILE, CIFSRC, patbl, and sp.

Referenced by write_header().

static void init_id ( struct Id_tbl idtp  )  [static]

Definition at line 2507 of file cif_conv.c.

References Id_tbl::cur, and Id_tbl::tbl.

Referenced by remap_symbols().

static int later_date ( char *  file_1,
char *  file_2 
) [static]

Definition at line 394 of file cif_conv.c.

References stat::st_mtime, stat, and void.

Referenced by cif_convert_to_cifconv(), and cif_convert_to_lines().

static void makeudir ( void   )  [static]

static int merge_usages ( void   )  [static]

static void remap_files ( void   )  [static]

Referenced by sortfile().

static void remap_symbols ( void   )  [static]

static int sortfile ( struct Cif_generic cifp  )  [static]

static int write_header ( void   )  [static]

static int write_unit ( int  fd,
enum Boolean  markpos,
enum Boolean  merge_use 
) [static]


Variable Documentation

enum Boolean canpos = False [static]

Definition at line 112 of file cif_conv.c.

Referenced by copy_units(), sortfile(), and write_header().

char* cif_tt_dir = (char *) NULL [static]

Definition at line 626 of file cif_conv.c.

int cifconv_return_code = 0 [static]

Definition at line 87 of file cif_conv.c.

Referenced by Cif_Cifconv(), and Cif_Make_Cifconv().

int current_store_record = 0 [static]

Definition at line 1024 of file cif_conv.c.

long fdirpos [static]

Definition at line 111 of file cif_conv.c.

Referenced by sortfile(), and write_header().

enum Boolean first_time = True [static]

Definition at line 136 of file cif_conv.c.

enum Boolean global_error_report = False [static]

Definition at line 159 of file cif_conv.c.

Referenced by Cif_Cifconv(), and get_id().

int* global_nuses = (int *) NULL [static]

Definition at line 113 of file cif_conv.c.

Referenced by merge_usages(), and write_unit().

int global_nuses_allocated = 0 [static]

Definition at line 114 of file cif_conv.c.

Referenced by merge_usages().

char* global_outfile [static]

Definition at line 150 of file cif_conv.c.

Referenced by Cif_Make_Cifconv(), and get_id().

const int horder[HRECORDS] [static]

Initial value:

 {
  CIF_CIFHDR,
  CIF_FILEDIR,
  CIF_SRCFILE,
  CIF_FILE,
  CIF_INCLUDE,
  CIF_SRC_POS,
  CIF_ORIG_CMD,
  CIF_EDOPTS,
  CIF_MACH_CHAR,
  CIF_MISC_OPTS,
  CIF_F90_MISC_OPTS,
  CIF_OPT_OPTS,
  CIF_F90_OPT_OPTS,
  CIF_C_OPTS,
  CIF_SUMMARY
}

Definition at line 2199 of file cif_conv.c.

int infd [static]

Definition at line 107 of file cif_conv.c.

Referenced by Cif_Make_Cifconv(), and sortfile().

int lang [static]

Definition at line 81 of file cif_conv.c.

int max_store_record = 0 [static]

Definition at line 1025 of file cif_conv.c.

int next

Definition at line 147 of file cif_conv.c.

Referenced by __pow(), __powf(), _cpp_free_buff(), ANL_PRAGMA_ATTRIBUTE::_Write_Pragma(), ANL_PRAGMA_ATTRIBUTE::_Write_Pragma_Arguments(), add_dependence(), add_dependence_list_and_free(), Add_Float_Stores(), EXEC_PATH::Add_Hash(), add_insn_after(), add_next_to_vliw(), add_tlist(), alpha_align_insns(), alphaev4_next_group(), alphaev5_next_group(), ANNOT_Add(), ANNOT_Unlink(), Append_Pragma_Clauses(), apply_opt_in_copies(), apply_return_prediction(), apuinfo_list_finish(), arm_barrier_cost(), at_endline_loc_p(), CG_LOOP::Attach_Prolog_And_Epilog(), attrs_list_clear(), avr_reorg(), barrier_align(), BB_Copy_All_Preds(), BB_Copy_All_Succs(), BB_Disconnect_All_Preds(), BB_Disconnect_All_Succs(), BB_Take_Over_All_Preds(), BB_Take_Over_All_Succs(), BBlist_Fall_Thru_Succ(), bfd_boolean(), bitmap_and_compl_into(), bitmap_and_into(), bitmap_clear(), bitmap_compl_and_into(), bitmap_element_free(), bitmap_elt_clear_from(), bitmap_xor_into(), block_move_sequence(), blocks_nreverse(), Branches_Around(), bsi_after_labels(), c_split_parallel_clauses(), calc_wider_mode(), calculate_needs_all_insns(), cfg_layout_can_duplicate_bb_p(), cfg_layout_delete_block(), cgraph_decide_inlining(), cgraph_decide_inlining_of_small_functions(), cgraph_decide_recursive_inlining(), cgraph_finalize_compilation_unit(), cgraph_mark_inline(), cgraph_remove_unreachable_nodes(), cgraph_reset_node(), cgraph_varpool_remove_unreferenced_decls(), CGTARG_Dependence_Required(), check_field_decls(), check_format_info_main(), check_operand_nalternatives(), Check_Undefined_Results(), clean(), clean_aux_registers(), cleanup_barriers(), cleanup_unconditional_jumps(), clear_edges(), clobber_variable_part(), coff_print_symbol(), collect_one_action_chain(), combine_btr_defs(), combine_instructions(), combine_stack_adjustments_for_block(), combine_temp_slots(), commit_edge_insertions(), commit_edge_insertions_watch_calls(), commit_one_edge_insertion(), compact_distree(), compare_condition(), compute_antic_aux(), compute_buffer_net_size(), compute_estimated_nb_iterations(), OPT_STAB::Compute_FFA(), compute_forward_dependences(), compute_phi_arg_on_exit(), convert_from_eh_region_ranges_1(), Convert_Regs(), Convert_Section_To_Pdo(), copy_insn_notes(), copy_list(), copy_loop_headers(), copy_src_to_dest(), Count_Loop_Size(), count_or_remove_death_notes(), count_or_remove_death_notes_bb(), cover_insn(), cp_finish_file(), cp_parser_objc_superclass_or_category(), Create_Common_Block(), cse_end_of_basic_block(), cselib_invalidate_mem(), cselib_lookup(), cwh_stab_free_list(), DEBUG_Init_Config(), decDensePackCoeff(), decide_unrolling_and_peeling(), decShiftToMost(), delete_address_reloads(), delete_caller_save_insns(), delete_computation(), delete_dead_jumptables(), Delete_Def_Use(), Delete_Dist_Reshape_Pragmas(), delete_for_peephole(), delete_insn(), delete_insn_chain(), UNRESOLVED_DEP_LST::Delete_Item(), BOOKEEPING_LST::Delete_Item(), delete_noop_moves(), delete_related_insns(), Delete_Unreachable_Blocks(), Delete_Unwanted_Prefetches(), delete_variable_part(), demangle_type(), demangling_delete(), df_chain_unlink(), df_kill_notes(), df_reg_chain_unlink(), Divide_BB(), draw_bb_dependence_graph(), draw_bb_op(), draw_global_cfg(), draw_regional_dependence_graph(), DST_get_ordinal_num(), CFG_NODE_MAP::Dump(), dump_constants(), dump_expr(), dwarf_get_relocation_info(), EBO_Remove_Unused_Ops(), EC_Array_Portion_Calls(), edge_to_cases_cleanup(), elf64_alpha_merge_gots(), elfNN_ia64_relax_section(), Eliminate_Dead_SCF_rec(), eliminate_degenerate_phis_1(), eliminate_virtual_phis(), emit_call_insn_before(), emit_call_insn_before_noloc(), emit_class_narrowest_mode(), emit_insn(), emit_insn_before(), emit_insn_before_noloc(), emit_jump_insn(), emit_jump_insn_before(), emit_jump_insn_before_noloc(), emit_libcall_block(), emit_no_conflict_block(), emit_output_reload_insns(), end_template_parm_list(), exit(), expand_builtin_expect_jump(), expand_call_inline(), expr_last(), factor_tests(), ffedata_advance_(), ffeexpr_cb_close_paren_ambig_1_(), ffeexpr_cb_comma_i_5_(), ffeexpr_finished_(), ffeexpr_token_first_lhs_1_(), ffeexpr_token_first_rhs_1_(), ffeexpr_token_first_rhs_2_(), ffeexpr_token_first_rhs_3_(), ffeexpr_token_first_rhs_4_(), ffeexpr_token_first_rhs_5_(), ffeexpr_token_first_rhs_6_(), ffeexpr_token_namelist_(), ffesta_save_(), ffesta_second_(), ffesta_two(), ffestb_decl_kindparam_1_(), ffestb_decl_typeparams_1_(), ffestb_do(), ffestb_do3_(), ffestb_dowhile(), ffestb_goto(), ffestb_halt(), ffestb_if3_(), ffestc_subr_binsrch_(), ffestd_R1001dump_(), ffestt_caselist_kill(), ffestt_dimlist_as_expr(), ffestt_dimlist_kill(), ffestt_dimlist_type(), ffestt_exprlist_drive(), ffestt_exprlist_kill(), ffestt_formatlist_kill(), ffestt_implist_drive(), ffestt_implist_kill(), final_scan_insn(), Finalize_All_BBs(), find_basic_blocks_1(), find_dead_or_set_registers(), Find_DST_From_ST(), find_if_block(), find_label_refs(), find_next_ref(), find_sub_basic_blocks(), find_temp_slot_from_address(), finish_builtin_struct(), finish_file(), fix_basic_block_boundaries(), fixup_abnormal_edges(), fixup_fallthru_exit_predecessor(), fixup_reorder_chain(), fixup_var_refs_insn(), fixup_var_refs_insns(), flush_quick_stack(), fold_rtx(), follow_jumps(), fray_yield(), free_bb(), free_buffer_list(), free_csa_memlist(), free_ddg(), free_def_dec(), free_eh_ranges(), free_insn_expr_list_list(), free_label_states(), free_lim_aux_data(), free_mem_refs(), free_nesting_tree(), free_numbers_of_iterations_estimates_loop(), free_reg_ref_chain(), free_resource_info(), free_state_stack(), free_temp_slots(), free_use_list(), frv_read_argument(), Fully_Unroll_Short_Loops(), Gather_Invar(), gen_block_redirect(), gen_expand(), gen_split(), generate_bytecode_insns(), Generate_Runtime_Stuff(), get_base_for(), get_biv_step_1(), get_effective_char(), get_parm_info(), ANL_FUNC_ENTRY::Get_Pragma_Srcpos_Range(), Get_ResultEqVarIdx(), Get_Resultidx_Intrncall(), Get_Struct_Parameter_Location(), Get_Vararg_Parameter_Location(), grokdeclarator(), GTY(), Guard_A_Do(), Guard_Dos_Rec(), handle_nested_ranges(), Hoist_Conditionals(), i960_va_arg(), ia64_dependencies_evaluation_hook(), ia64_sched_reorder2(), init_label_info(), init_line_info(), init_ready_list(), init_spec(), Initialize_BB_Info(), insert(), insert_bit_table_ent(), DAG_OPS_INFO::Insert_op_info(), GROUP_ASSEMBLE::InsertAfter(), integrate_decl_tree(), Inter_Iteration_Cses_R(), invalidate(), invalidate_for_call(), invalidate_memory(), invalidate_mems_from_set(), IPA_WN_DELETE_Tree(), ir_b_write_tree(), is_costly_group(), Is_Empty_BB(), Is_TN_Last_Use(), ISA_Hazards_End(), iv_ca_delta_free(), iv_ca_delta_reverse(), iv_get_reaching_def(), java_demangle_v3(), java_is_eol(), java_lang_expand_expr(), kill_value_one_regno(), kill_value_regno(), lang_add_wild(), lang_finalize_version_expr_head(), lang_leave_overlay(), layout_superblocks(), ldctor_build_sets(), listify(), LNO_Init_Config(), lookup_conversions(), loop_ivs_free(), loop_niter_by_eval(), lower_bit_field_id(), LWN_Create_Block_From_Stmts_Below(), m32c_compare_redundant(), m32r_elf_lo16_reloc(), machine_dependent_reorg(), GRA_LOOP::Make_Loop_Nest(), make_regs_eqv(), make_reorder_chain(), make_reorder_chain_1(), Mark_Dos(), Mark_Invar(), mark_used_regs(), Max_Arg_Area_Bytes(), maybe_apply_pending_pragma_weaks(), maybe_duplicate_computed_goto_succ(), maybe_encapsulate_block(), MDparseline(), MEM_POOL_FREE(), MEM_POOL_Pop_P(), SLIST_RECYCLE< ALIAS_CLASS_MEMBER * >::Merge(), IF_CONVERTOR::Merge_Blocks(), merge_blocks_move(), merge_equiv_classes(), merge_tlist(), merge_trees(), mf_xform_derefs(), mips16_optimize_gp(), mips_output_function_epilogue(), mips_reflo_reloc(), Modify_Asm_String(), move_movables(), mt_reorg_hazard(), New_Fld_Path_Info(), EXP_ALL_OCCURS_ITER::Next(), EXP_ALL_REAL_ITER::Next(), next_dom_son(), next_insn_no_annul(), next_insn_tests_no_unsigned(), Next_PLOC_Reg(), ANL_PRAGMA_ATTRIBUTE::Next_Stmt(), ANL_PRAGMA_CONSTRUCT::Next_Stmt(), nreverse(), objalloc_free(), objalloc_free_block(), OPT_FEEDBACK::OPT_FEEDBACK(), optimize_attrs(), Optimize_Cyclic_Chain(), or32_elf_const_reloc(), output_after_function_constants(), output_data(), output_deferred_addressed_constants(), output_pending_init_elements(), output_predicate_decls(), PARAMS(), peel_loops_completely(), perform(), pex_unix_cleanup(), phi_reverse(), pool_copy_list(), pop_temp_slots(), pop_to_parent_deferring_access_checks(), ppc_elf_relax_section(), preserve_temp_slots(), VN::print(), print_insn_h8500(), process_assert_insertions(), process_phi_nodes(), product_cheap_p(), propagate_block_delete_insn(), purge_dead_edges(), SLIST_RECYCLE_HOME< ALIAS_CLASS_MEMBER * >::Receive(), redirect_edges(), REGION_Entry_PREG_Whirl(), REGION_Exit_PREG_Whirl(), regmove_optimize(), rehash_using_reg(), release_pages(), reload_as_needed(), reload_cse_move2add(), remove_all_phi_nodes_for(), Remove_Annotations(), Remove_Chain(), remove_dead_phis(), remove_dependence(), remove_eh_handler(), Remove_Explicit_Branch(), remove_from_table(), Remove_if(), remove_insn(), remove_invalid_refs(), remove_invalid_subreg_refs(), remove_phi_nodes_and_edges_for_unreachable_block(), remove_ssa_form(), remove_unnecessary_notes(), remove_useless_addtr_insns(), rename_block(), rename_equivalent_regs(), SNL_BOUNDS_INFO::Reset_Varcount_To(), rest_of_clean_state(), Restore_Skips(), reverse_arcs(), reverse_def_dec_list(), rtl_value_profile_transformations(), s390_chunkify_cancel(), s390_chunkify_finish(), s390_chunkify_pool(), s390_free_pool(), save_call_clobbered_regs(), save_def_or_dec(), scan_rtx_reg(), sched_analyze_insn(), schedule_stop(), scope_to_insns_initialize(), IF_CONVERTOR::Set_Fall_Thru(), ANL_VAR::Set_Name_Alias(), set_spec(), Set_Up_Equivalence_Classes(), set_variable_part(), sh_loop_align(), shorten_branches(), skip_escaped_newlines(), SNL_Distribute(), solaris_insert_attributes(), Sort_Clone_Cands(), Sort_Invar_Expressions_Rec(), Special_Sequence(), splay_tree_splay_helper(), split_branches(), split_complex_types(), split_complex_values(), Split_Region(), split_specs_attrs(), squeeze_notes(), ssa_ccp_df_delete_unreachable_insns(), ssa_redirect_edge(), store_parm_decls(), string_list_delete(), sunos_scan_dynamic_symbol(), sweep_pages(), test_is_replaced(), TN_CORRESPOND_Free(), AGGINIT::Traverse_Aggregate_Array(), Traverse_Aggregate_Array(), tree_last(), tree_optimize_tail_calls_1(), tree_unroll_loop(), try_combine(), try_forward_edges(), try_optimize_cfg(), try_simplify_condjump(), tsi_delink(), tsi_split_statement_list_after(), TY2F_List_Common_Flds(), ultra_find_type(), undo_all(), undo_commit(), unreverse_member_declarations(), unroll_and_peel_loops(), unroll_multi_bb(), unroll_multi_make_remainder_loop(), unroll_remove_notations(), var_reg_delete(), var_reg_delete_and_set(), var_regno_delete(), variable_htab_free(), VEC(), verify_function_arguments(), vr4130_align_insns(), WN2C_pragma(), WN2F_pragma(), WN_DELETE_Tree(), WN_next(), WN_Simplify_Tree(), write_header(), write_node(), write_tree_1(), write_unit(), xcoff64_reloc_type_br(), xcoff_reloc_type_br(), xtensa_expand_block_move(), and RG_LIST::~RG_LIST().

int outfd [static]

const int pabump[CIF_MAXRECORD] [static]

Definition at line 162 of file cif_conv.c.

Referenced by addstruct().

struct { ... } patbl[CIF_MAXRECORD] [static]

int psize

int(* qcompare[CIF_MAXRECORD])() [static]

Referenced by write_header(), and write_unit().

Definition at line 1023 of file cif_conv.c.

enum Boolean Remap_id [static]

Definition at line 125 of file cif_conv.c.

Referenced by Cif_Make_Cifconv(), copy_units(), and sortfile().

struct Id_tbl sid [static]

char* tfile = NULL [static]

Definition at line 110 of file cif_conv.c.

int tmpfd = -1 [static]

Definition at line 109 of file cif_conv.c.

Referenced by Cif_Make_Cifconv(), copy_units(), and sortfile().

const int uorder[URECORDS] [static]

Definition at line 2284 of file cif_conv.c.

char USMID[] = "@(#) libcif/cif_conv.c 30.22 12/08/96 14:42:46" [static]

Definition at line 41 of file cif_conv.c.


Generated on Wed Apr 8 15:51:04 2009 for Open64 by  doxygen 1.5.6