osprey/cygnus/opcodes/s390-mkopc.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Include dependency graph for s390-mkopc.c:

Go to the source code of this file.

Data Types

type  op_struct

Enumerations

enum  s390_opcode_mode_val { S390_OPCODE_ESA = 0, S390_OPCODE_ZARCH, S390_OPCODE_ESA = 0, S390_OPCODE_ZARCH }
enum  s390_opcode_cpu_val {
  S390_OPCODE_G5 = 0, S390_OPCODE_G6, S390_OPCODE_Z900, S390_OPCODE_Z990,
  S390_OPCODE_G5 = 0, S390_OPCODE_G6, S390_OPCODE_Z900, S390_OPCODE_Z990
}

Functions/Subroutines

static void createTable (void)
static void insertOpcode (char *opcode, char *mnemonic, char *format, int min_cpu, int mode_bits)
static void dumpTable (void)
int main (void)

Variables

struct op_structop_array
int max_ops
int no_ops
static char file_header []


Enumeration Type Documentation

Enumerator:
S390_OPCODE_G5 
S390_OPCODE_G6 
S390_OPCODE_Z900 
S390_OPCODE_Z990 
S390_OPCODE_G5 
S390_OPCODE_G6 
S390_OPCODE_Z900 
S390_OPCODE_Z990 

Definition at line 37 of file s390-mkopc.c.

Enumerator:
S390_OPCODE_ESA 
S390_OPCODE_ZARCH 
S390_OPCODE_ESA 
S390_OPCODE_ZARCH 

Definition at line 31 of file s390-mkopc.c.


Function Documentation

static void createTable ( void   )  [static]

Definition at line 62 of file s390-mkopc.c.

References malloc, max_ops, and no_ops.

Referenced by main().

static void dumpTable ( void   )  [static]

static void insertOpcode ( char *  opcode,
char *  mnemonic,
char *  format,
int  min_cpu,
int  mode_bits 
) [static]

int main ( void   ) 


Variable Documentation

char file_header[] [static]

Initial value:

  "/* The opcode table. This file was generated by s390-mkopc.\n\n"
  "   The format of the opcode table is:\n\n"
  "   NAME       OPCODE MASK  OPERANDS\n\n"
  "   Name is the name of the instruction.\n"
  "   OPCODE is the instruction opcode.\n"
  "   MASK is the opcode mask; this is used to tell the disassembler\n"
  "     which bits in the actual opcode must match OPCODE.\n"
  "   OPERANDS is the list of operands.\n\n"
  "   The disassembler reads the table in order and prints the first\n"
  "   instruction which matches.  */\n\n"
  "const struct s390_opcode s390_opcodes[] =\n  {\n"

Definition at line 120 of file s390-mkopc.c.

Referenced by _write_File_Header(), CG_BROWSER::Bad_File(), dumpTable(), IP_READ_pu_infos(), IPA_Trace_Summary_Section(), process_whirl(), Setup_File_Header(), Setup_Inliner_File_Header(), CG_BROWSER::Summary_Size(), and ARRAY_SUMMARY_OUTPUT::Trace().

int max_ops

Definition at line 58 of file s390-mkopc.c.

Referenced by createTable(), insertOpcode(), and REGION_TREE::Statistic().

int no_ops

Definition at line 59 of file s390-mkopc.c.

Referenced by createTable(), dumpTable(), and insertOpcode().


Generated on Wed Apr 8 15:05:59 2009 for Open64 by  doxygen 1.5.6