annotate mc-codegen.h @ 320:183726ccd83d

asm minor fix. ia32 table jmp fix.
author kono
date Sat, 19 Jun 2004 00:13:36 +0900
parents 117baacd1ed0
children da2e3f2d127d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
144
56211702f298 creg/freg continue
kono
parents: 138
diff changeset
1 /* for mc-codegen.c */
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
2
221
ceae585186d9 *** empty log message ***
kono
parents: 195
diff changeset
3 extern int use; /* generated value will be used in gexpr */
83
f3f75911d62c *** empty log message ***
kono
parents: 81
diff changeset
4
221
ceae585186d9 *** empty log message ***
kono
parents: 195
diff changeset
5 #define USE_CREG (-1)
320
183726ccd83d asm minor fix. ia32 table jmp fix.
kono
parents: 305
diff changeset
6 #define ASM_INPUT 1
183726ccd83d asm minor fix. ia32 table jmp fix.
kono
parents: 305
diff changeset
7 #define ASM_OUTPUT 2
183726ccd83d asm minor fix. ia32 table jmp fix.
kono
parents: 305
diff changeset
8 #define ASM_USED 3
183726ccd83d asm minor fix. ia32 table jmp fix.
kono
parents: 305
diff changeset
9 #define MAX_ASM_REG 30
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
10
104
c21aeb12b78b *** empty log message ***
kono
parents: 102
diff changeset
11 /* function provided by mc-code-*.c */
c21aeb12b78b *** empty log message ***
kono
parents: 102
diff changeset
12
105
7e3d59e56a53 save register ( incomplete )
kono
parents: 104
diff changeset
13 extern int get_register_var(NMTBL *);
138
e6e77af048a1 float/dobule configuration
kono
parents: 137
diff changeset
14 extern int get_dregister_var(NMTBL *,int);
195
c193120ee2a6 *** empty log message ***
kono
parents: 147
diff changeset
15 extern int get_lregister_var(NMTBL *);
137
9fb09db54436 fix powerpc get_fregister_var's regs error.
kono
parents: 133
diff changeset
16
9fb09db54436 fix powerpc get_fregister_var's regs error.
kono
parents: 133
diff changeset
17 extern void arg_register(NMTBL *fnptr);
104
c21aeb12b78b *** empty log message ***
kono
parents: 102
diff changeset
18
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
19 /* function provided by mc-codegen.c */
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
20
102
3cf2f8c120b9 *** empty log message ***
kono
parents: 99
diff changeset
21 extern void codegen_init();
3cf2f8c120b9 *** empty log message ***
kono
parents: 99
diff changeset
22
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
23 extern void def_label(int cslabel, int dlabel);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
24 extern int backdef(void);
137
9fb09db54436 fix powerpc get_fregister_var's regs error.
kono
parents: 133
diff changeset
25 extern int free_register_count(int);
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
26 extern int fwdlabel(void);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
27 extern void b_expr(int e1, char cond, int l1,int err);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
28 extern void bexpr(int e1, char cond, int l1);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
29 extern void emit_init(void);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
30 extern void fwddef(int l);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
31
98
07c2554e1cfa *** empty log message ***
kono
parents: 95
diff changeset
32 extern int is_code(NMTBL *fnptr);
07c2554e1cfa *** empty log message ***
kono
parents: 95
diff changeset
33 extern int is_function(NMTBL *fnptr);
305
117baacd1ed0 stdarg powerpc passed except long long (macro problem)
kono
parents: 297
diff changeset
34 extern int function_type(int e1,int *dots);
277
d5467cf30f58 Prallel Register Assignment
kono
parents: 223
diff changeset
35 extern void parallel_rassign(int list);
98
07c2554e1cfa *** empty log message ***
kono
parents: 95
diff changeset
36
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
37 extern int csvalue();
287
a0779a414855 *** empty log message ***
kono
parents: 277
diff changeset
38 extern void cmpdimm(int e, int csreg,int label,int cond);
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
39 extern void code_enter(char *name) ;
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
40 extern void code_enter1(int args);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
41 extern void code_init(void);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
42 extern void code_leave(char *name) ;
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
43 extern void emit_data(int e, int t, NMTBL *n);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
44 extern void emit_data_closing(NMTBL *n);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
45 extern void emit_init(void);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
46 extern void enter(char *name);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
47 extern void enter1();
94
1ad7045741a7 float dbinop fix
kono
parents: 89
diff changeset
48 extern int g_expr(int e1);
99
53899975154c *** empty log message ***
kono
parents: 98
diff changeset
49 extern int g_expr_u(int e1);
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
50 extern void gen_comment(char *s);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
51 extern void gen_gdecl(char *n, int gpc);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
52 extern void gen_source(char *s);
94
1ad7045741a7 float dbinop fix
kono
parents: 89
diff changeset
53 extern int gexpr(int e1,int use);
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
54 extern void gexpr_init(void);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
55 extern void jmp(int l);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
56 extern void jmp_eq_label(int l);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
57 extern void jmp_label(int l);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
58 extern void leave(int control, char *name);
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
59 extern void opening(char *filename);
66
0b068058dd67 *** empty log message ***
kono
parents: 61
diff changeset
60 extern void closing();
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
61 extern void ret(void);
78
8418d4b7caa7 *** empty log message ***
kono
parents: 77
diff changeset
62 extern void creg_destroy();
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
63
99
53899975154c *** empty log message ***
kono
parents: 98
diff changeset
64 extern int contains(int e,int type);
104
c21aeb12b78b *** empty log message ***
kono
parents: 102
diff changeset
65 extern int contains_in_list(int e,int type);
223
1ac647873577 *** empty log message ***
kono
parents: 221
diff changeset
66 extern int contains_p(int e,int (*p)(int));
1ac647873577 *** empty log message ***
kono
parents: 221
diff changeset
67 extern int contains_in_list_p(int e,int (*p)(int));
99
53899975154c *** empty log message ***
kono
parents: 98
diff changeset
68
61
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
69
8ffb8ca3fe34 separation of architecture dependent part.
kono
parents:
diff changeset
70 /* end */