zpu: wip eke out some simple instructions for load/store/add
commit76f816e399e5bd280141023315c2d9c25a970aa0
authorØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 18 Nov 2010 23:17:48 +0000 (19 00:17 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 18 Nov 2010 23:31:14 +0000 (19 00:31 +0100)
tree1ab0f570a75a5e4913784e172fd4932f48bd2d18
parent79660deb492eff4ea3c30968c2db3c05b9fed8e1
zpu: wip eke out some simple instructions for load/store/add

Added r0, r1, r2, r3 that I intend to convert to
stack slots in a pass immediately after register
allocation.

int b;
int c;
void foo(void)
{
  c = 1234 + b;
}

=>
clang   -ccc-host-triple zpu-none-none test.c -S

im 1234 %r0
load b %r1
add %r0 %r1 %r0
storereg %r0 c
lib/Target/ZPU/ZPU.td
lib/Target/ZPU/ZPUInstrInfo.td
lib/Target/ZPU/ZPURegisterInfo.td
lib/Target/ZPU/ZPUSubtarget.cpp [new file with mode: 0644]
lib/Target/ZPU/ZPUSubtarget.h [new file with mode: 0644]
lib/Target/ZPU/ZPUTargetMachine.cpp
lib/Target/ZPU/ZPUTargetMachine.h