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

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_struct * | op_array |
| int | max_ops |
| int | no_ops |
| static char | file_header [] |
| enum s390_opcode_cpu_val |
| 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.
| enum s390_opcode_mode_val |
Definition at line 31 of file s390-mkopc.c.
Definition at line 136 of file s390-mkopc.c.
References file_header, format, op_struct::min_cpu, op_struct::mnemonic, op_struct::mode_bits, op_struct::no_nibbles, no_ops, opcode, printf(), and str.
Referenced by main().
| static void insertOpcode | ( | char * | opcode, | |
| char * | mnemonic, | |||
| char * | format, | |||
| int | min_cpu, | |||
| int | mode_bits | |||
| ) | [static] |
Definition at line 72 of file s390-mkopc.c.
References max_ops, op_struct::min_cpu, op_struct::mode_bits, op_struct::no_nibbles, no_ops, realloc, op_struct::sort_value, str, and strcpy.
Referenced by main().
| int main | ( | void | ) |
Definition at line 167 of file s390-mkopc.c.
References createTable(), dumpTable(), exit(), fgets(), format, fprintf(), insertOpcode(), memset, op_struct::min_cpu, op_struct::mnemonic, op_struct::mode_bits, NULL, opcode, S390_OPCODE_ESA, S390_OPCODE_G5, S390_OPCODE_G6, S390_OPCODE_Z900, S390_OPCODE_Z990, S390_OPCODE_ZARCH, sscanf(), str, strcmp(), and strncmp().
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().
Definition at line 57 of file s390-mkopc.c.
Referenced by Copy_Array(), Copy_Array_Section(), Create_Array_Load(), Create_Array_Store(), Create_Initialize_Loop(), expand_units(), Gather_Scatter_Scalar_Expand(), Gen_MP_Reduction(), Parallelize_Doacross_Loop(), Promote_Pointer(), SE_Array(), and SE_Wrap_Array().
1.5.6