Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
isa_lits_gen.cxx File Reference
#include <stddef.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <assert.h>
#include <limits.h>
#include "gen_util.h"
#include "isa_lits_gen.h"
Include dependency graph for isa_lits_gen.cxx:

Go to the source code of this file.

Classes

struct  lit_range

Defines

#define LONGLONG_MAX   9223372036854775807LL
#define ULONGLONG_MAX   18446744073709551615LLU
#define LONGLONG_MIN   (-9223372036854775807LL-1LL)
#define FNAME   "targ_isa_lits"

Functions

void ISA_Lits_Begin (void)
LIT_RANGE SignedBitRange (unsigned int bit_size)
LIT_RANGE UnsignedBitRange (unsigned int bit_size)
LIT_RANGE ISA_Create_Lit_Range (const char *name, long long min, long long max)
void ISA_Create_Lit_Class (const char *name, LIT_CLASS_TYPE type,...)
void ISA_Lits_End (void)

Variables

static const char *const interface []
static FILE * hfile
static FILE * cfile
static FILE * efile
static struct lit_range signed_range [65]
static struct lit_range unsigned_range [65]
static int max_ranges = 0

Define Documentation

#define FNAME   "targ_isa_lits"
#define LONGLONG_MAX   9223372036854775807LL

Definition at line 35 of file isa_lits_gen.cxx.

Referenced by ISA_Create_Lit_Class().

#define LONGLONG_MIN   (-9223372036854775807LL-1LL)

Definition at line 37 of file isa_lits_gen.cxx.

Referenced by ISA_Create_Lit_Class().

#define ULONGLONG_MAX   18446744073709551615LLU

Definition at line 36 of file isa_lits_gen.cxx.

Referenced by ISA_Create_Lit_Class().


Function Documentation

void ISA_Create_Lit_Class ( const char *  name,
LIT_CLASS_TYPE  type,
  ... 
)

Definition at line 192 of file isa_lits_gen.cxx.

References cfile, fprintf(), hfile, LIT_RANGE_END, LONGLONG_MAX, LONGLONG_MIN, lit_range::max, max, max_ranges, lit_range::min, min, SIGNED, and ULONGLONG_MAX.

Referenced by main().

Here is the call graph for this function:

LIT_RANGE ISA_Create_Lit_Range ( const char *  name,
long long  min,
long long  max 
)

Definition at line 178 of file isa_lits_gen.cxx.

References lit_range::max, max, lit_range::min, min, lit_range::name, and name.

Referenced by main().

void ISA_Lits_Begin ( void  )

Definition at line 113 of file isa_lits_gen.cxx.

References buf, cfile, efile, Emit_Header(), fprintf(), hfile, interface, lit_range::max, lit_range::min, signed_range, and unsigned_range.

Referenced by main().

Here is the call graph for this function:

void ISA_Lits_End ( void  )

Definition at line 240 of file isa_lits_gen.cxx.

References cfile, efile, Emit_Footer(), fprintf(), hfile, and max_ranges.

Referenced by main().

Here is the call graph for this function:

LIT_RANGE SignedBitRange ( unsigned int  bit_size)

Definition at line 150 of file isa_lits_gen.cxx.

References exit(), fprintf(), and signed_range.

Referenced by main().

Here is the call graph for this function:

LIT_RANGE UnsignedBitRange ( unsigned int  bit_size)

Definition at line 164 of file isa_lits_gen.cxx.

References exit(), fprintf(), and unsigned_range.

Referenced by main().

Here is the call graph for this function:


Variable Documentation

const char* const interface[] [static]

Definition at line 62 of file isa_lits_gen.cxx.

Referenced by ISA_Lits_Begin().

int max_ranges = 0 [static]

Definition at line 110 of file isa_lits_gen.cxx.

Referenced by ISA_Create_Lit_Class(), and ISA_Lits_End().

struct lit_range signed_range[65] [static]

Definition at line 108 of file isa_lits_gen.cxx.

Referenced by ISA_Lits_Begin(), and SignedBitRange().

struct lit_range unsigned_range[65] [static]

Definition at line 109 of file isa_lits_gen.cxx.

Referenced by ISA_Lits_Begin(), and UnsignedBitRange().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines