Displaying 2 results from an estimated 2 matches for "loadsp".
Did you mean:
loads
2010 Nov 18
0
[LLVMdev] Writing a backend for the ZPU
...code instructions.
So any treedepth was fine as long as it consisted of
operations that were supported by the instruction set. I'm can't
get a handle on how to translate this hack to llvm so far.
A typical ZPU machine code add might look something like this:
a = a + b + 123;
=>
loadsp 16 # push value at memory location sp+16 onto stack
loadsp 24 # another value
add
im 123
add
storesp 20 # store back to original location. Notice 16+4=20
LLVM represents the above as something like:
(set a, (add (add a,b), 123)
--
Øyvind Harboe
Can Zylin Consulting help on...
2010 Nov 19
0
[LLVMdev] Fw: Writing a backend for the ZPU
...ne as long as it consisted of
operations that were supported
> by
> the instruction set. I'm can't
get a handle on how to translate this hack
>
> to llvm so far.
A typical ZPU machine code add might look
> something
> like this:
a = a + b +
> 123;
=>
loadsp
> 16 # push value at
> memory location sp+16 onto stack
loadsp 24 #
> another
> value
add
im 123
>
> add
storesp 20 # store back to original location. Notice
>
> 16+4=20
LLVM represents the above as something
> like:
(set a,
> (add (add...