summaryrefslogtreecommitdiff
path: root/orc/orcpowerpc.h
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-04-27 16:56:11 +0100
committerTim-Philipp Müller <tim@centricular.com>2018-04-28 01:09:54 +0100
commitf77a850077633ee68038bfa2cc7c47a98208df5a (patch)
tree8aa364bb3e75a4a021978aa5e9629df32948b7f4 /orc/orcpowerpc.h
parent32dcb3e31d5aba9141738c48dcd13e30e8edd9c1 (diff)
downloadorc-f77a850077633ee68038bfa2cc7c47a98208df5a.tar.gz
orc: decorate public symbols with ORC_API
We'll use that later to control symbol visibility and exported symbols.
Diffstat (limited to 'orc/orcpowerpc.h')
-rw-r--r--orc/orcpowerpc.h47
1 files changed, 17 insertions, 30 deletions
diff --git a/orc/orcpowerpc.h b/orc/orcpowerpc.h
index bb6a71e..f44d4e3 100644
--- a/orc/orcpowerpc.h
+++ b/orc/orcpowerpc.h
@@ -101,39 +101,26 @@ void powerpc_emit_bne (OrcCompiler *compiler, int label);
void powerpc_emit_label (OrcCompiler *compiler, int label);
void powerpc_add_fixup (OrcCompiler *compiler, int type, unsigned char *ptr, int label);
void powerpc_do_fixups (OrcCompiler *compiler);
-void orc_powerpc_flush_cache (OrcCode *code);
-
-void powerpc_emit_srawi (OrcCompiler *compiler, int regd, int rega, int shift,
- int record);
-void powerpc_emit_655510 (OrcCompiler *compiler, int major, int d, int a,
- int b, int minor);
-void powerpc_emit_D (OrcCompiler *compiler, const char *name,
- unsigned int insn, int regd, int rega, int imm);
-void powerpc_emit_X (OrcCompiler *compiler, unsigned int insn, int d, int a,
- int b);
-void powerpc_emit_VA (OrcCompiler *compiler, const char *name, unsigned int insn, int d, int a, int b,
- int c);
-void powerpc_emit_VA_acb (OrcCompiler *compiler, const char *name, unsigned int insn, int d, int a, int b,
- int c);
-void powerpc_emit_VX (OrcCompiler *compiler, unsigned int insn, int d, int a,
- int b);
+ORC_API void orc_powerpc_flush_cache (OrcCode *code);
+
+void powerpc_emit_srawi (OrcCompiler *compiler, int regd, int rega, int shift, int record);
+void powerpc_emit_655510 (OrcCompiler *compiler, int major, int d, int a, int b, int minor);
+void powerpc_emit_D (OrcCompiler *compiler, const char *name, unsigned int insn, int regd, int rega, int imm);
+void powerpc_emit_X (OrcCompiler *compiler, unsigned int insn, int d, int a, int b);
+void powerpc_emit_VA (OrcCompiler *compiler, const char *name, unsigned int insn, int d, int a, int b, int c);
+void powerpc_emit_VA_acb (OrcCompiler *compiler, const char *name, unsigned int insn, int d, int a, int b, int c);
+void powerpc_emit_VX (OrcCompiler *compiler, unsigned int insn, int d, int a, int b);
void powerpc_emit_VX_b (OrcCompiler *p, const char *name, unsigned int insn, int a);
void powerpc_emit_VX_db (OrcCompiler *p, const char *name, unsigned int insn, int d, int b);
void powerpc_emit_VX_dbi (OrcCompiler *p, const char *name, unsigned int insn, int d, int b, int imm);
-void powerpc_emit_VXR (OrcCompiler *compiler, const char *name,
- unsigned int insn, int d, int a, int b, int record);
-void powerpc_emit_VX_2 (OrcCompiler *p, const char *name, unsigned int insn,
- int d, int a, int b);
-void powerpc_emit_VX_3 (OrcCompiler *p, const char *name, unsigned int insn,
- int d, int a, int b, int c);
-void powerpc_emit_VX_3_reg (OrcCompiler *p, const char *name, unsigned int insn,
- int d, int a, int b, int c);
-void powerpc_emit_VX_4 (OrcCompiler *p, const char *name, unsigned int insn,
- int d, int a);
-int powerpc_get_constant (OrcCompiler *p, int type, int value);
-int powerpc_get_constant_full (OrcCompiler *p, int value0, int value1, int value2, int value3);
-void powerpc_load_long_constant (OrcCompiler *p, int reg, orc_uint32 a,
- orc_uint32 b, orc_uint32 c, orc_uint32 d);
+void powerpc_emit_VXR (OrcCompiler *compiler, const char *name, unsigned int insn, int d, int a, int b, int record);
+void powerpc_emit_VX_2 (OrcCompiler *p, const char *name, unsigned int insn, int d, int a, int b);
+void powerpc_emit_VX_3 (OrcCompiler *p, const char *name, unsigned int insn, int d, int a, int b, int c);
+void powerpc_emit_VX_3_reg (OrcCompiler *p, const char *name, unsigned int insn, int d, int a, int b, int c);
+void powerpc_emit_VX_4 (OrcCompiler *p, const char *name, unsigned int insn, int d, int a);
+int powerpc_get_constant (OrcCompiler *p, int type, int value);
+int powerpc_get_constant_full (OrcCompiler *p, int value0, int value1, int value2, int value3);
+void powerpc_load_long_constant (OrcCompiler *p, int reg, orc_uint32 a, orc_uint32 b, orc_uint32 c, orc_uint32 d);
/* instructions */
#define powerpc_emit_vand(p,a,b,c) powerpc_emit_VX_2 (p, "vand", 0x10000404, a, b, c)