aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/llvm/hipe_llvm_arch.hrl
diff options
context:
space:
mode:
authorYiannis Tsiouris <[email protected]>2014-01-28 18:16:54 +0200
committerYiannis Tsiouris <[email protected]>2014-03-07 18:35:03 +0200
commit030fd3f190a44bef059e7490c4b9c615088287d8 (patch)
tree251e9cfbd442f33b37379e879862646430ec3a37 /lib/hipe/llvm/hipe_llvm_arch.hrl
parent7a490d5cff3f033901ab6cac6c0fc1fd7bcb22c7 (diff)
downloadotp-030fd3f190a44bef059e7490c4b9c615088287d8.tar.gz
otp-030fd3f190a44bef059e7490c4b9c615088287d8.tar.bz2
otp-030fd3f190a44bef059e7490c4b9c615088287d8.zip
Implement the LLVM backend
Diffstat (limited to 'lib/hipe/llvm/hipe_llvm_arch.hrl')
-rw-r--r--lib/hipe/llvm/hipe_llvm_arch.hrl11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/hipe/llvm/hipe_llvm_arch.hrl b/lib/hipe/llvm/hipe_llvm_arch.hrl
new file mode 100644
index 0000000000..689a5a52ea
--- /dev/null
+++ b/lib/hipe/llvm/hipe_llvm_arch.hrl
@@ -0,0 +1,11 @@
+-ifdef(BIT32).
+-define(NR_PINNED_REGS, 2).
+-define(NR_ARG_REGS, 3).
+-define(ARCH_REGISTERS, hipe_x86_registers).
+-define(FLOAT_OFFSET, 2).
+-else.
+-define(NR_PINNED_REGS, 2).
+-define(NR_ARG_REGS, 4).
+-define(ARCH_REGISTERS, hipe_amd64_registers).
+-define(FLOAT_OFFSET, 6).
+-endif.