Added header files for ABI
authorSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Tue, 21 Feb 2006 12:41:52 +0000 (12:41 +0000)
committerSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Tue, 21 Feb 2006 12:41:52 +0000 (12:41 +0000)
ir/be/beabi.h [new file with mode: 0644]
ir/be/beabi_t.h [new file with mode: 0644]

diff --git a/ir/be/beabi.h b/ir/be/beabi.h
new file mode 100644 (file)
index 0000000..d57e842
--- /dev/null
@@ -0,0 +1,23 @@
+
+/**
+ * Backend ABI implementation.
+ */
+
+#ifndef _BEABI_H
+#define _BEABI_H
+
+#include "bearch.h"
+#include "beabi_t.h"
+
+typedef enum {
+       BE_ABI_NONE = 0,
+       BE_ABI_LEFT_TO_RIGHT = 1,
+       BE_ABI_USE_PUSH = 2
+} be_abi_call_flags_t;
+
+void be_abi_call_set_flags(be_abi_call_t *call, be_abi_call_flags_t flags);
+void be_abi_call_param_stack(be_abi_call_t *call, int pos);
+void be_abi_call_param_reg(be_abi_call_t *call, int pos, const arch_register_t *reg);
+void be_abi_call_res_reg(be_abi_call_t *call, int pos, const arch_register_t *reg);
+
+#endif
diff --git a/ir/be/beabi_t.h b/ir/be/beabi_t.h
new file mode 100644 (file)
index 0000000..790d4e3
--- /dev/null
@@ -0,0 +1,12 @@
+
+/**
+ * Type declarations for the BAI module.
+ */
+
+#ifndef _BEABI_T_h
+#define _BEABI_T_h
+
+typedef struct _be_abi_call_t be_abi_call_t;
+typedef struct _be_abi_irg_t  be_abi_irg_t;
+
+#endif