Hi all,<br><br>I'm working on using LLVM to generate ARM code for Android's Dalvik VM.<br>I translated some DEX bytecode to LLVM IR, and now I wnat to translate these IR into ARM assembly by using llc.<br>But there are some ABI problems (Register mapping) should be solved.<br>
<br>Dalvik VM stores virtual register in the fixed memory address.<br>For example,<br>v0 -> [r5,#0]<br>v1 -> [r5,#4]<br>v2 -> [r5,#8]<br>v3 -> [r5,#12]<br>....<br>v100 -> [r5,#400]<br><br><br>So I want to know how can I generate such register allocation?<br>
(e.g load v3 from [r5,#12] and store v2 into [r5,#8])<br>I have got the approach for reserving r5, but load/store problem not yet<br>Is there any related information about it?<br>Thanks<br>