2004-02-29 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / jit / helpers.h
1 /*
2  * Author:
3  *   Dietmar Maurer (dietmar@ximian.com)
4  *
5  * (C) 2001 Ximian, Inc.
6  */
7
8 #ifndef _MONO_JIT_HELPERS_H_
9 #define _MONO_JIT_HELPERS_H_
10
11 #include <config.h>
12
13 #include "jit.h"
14
15 int
16 mono_map_store_svt_type    (int svt);
17
18 void
19 mono_get_val_sizes         (MonoValueType type, int *size, int *align);
20
21 int
22 mono_map_stind_type        (MonoType *type);
23
24 int
25 mono_map_remote_stind_type (MonoType *type);
26
27 int
28 mono_map_starg_type        (MonoType *type);
29
30 int
31 mono_map_arg_type          (MonoType *type);
32
33 int
34 mono_map_ldind_type        (MonoType *type, MonoValueType *svt);
35
36 int
37 mono_map_ldarg_type        (MonoType *type, MonoValueType *svt);
38
39 int
40 mono_map_call_type         (MonoType *type, MonoValueType *svt);
41
42 MBTree *
43 mono_ctree_new             (MonoMemPool *mp, int op, MBTree *left, 
44                             MBTree *right);
45 MBTree *
46 mono_ctree_new_leaf        (MonoMemPool *mp, int op);
47
48 MBTree *
49 mono_ctree_new_icon4       (MonoMemPool *mp, gint32 data);
50
51 void
52 mono_print_ctree           (MonoFlowGraph *cfg, MBTree *tree);
53
54 void
55 mono_print_forest          (MonoFlowGraph *cfg, GPtrArray *forest);
56
57 void
58 mono_disassemble_code      (guint8 *code, int size, char *id);
59
60
61 #endif