[llvm-dev] How to code backend with irregular memory address increment
winter Liu via llvm-dev
llvm-dev at lists.llvm.org
Tue Apr 11 04:52:19 PDT 2017
Generayll, the memory address increases 1 every 8 bits, however on the platform I worked on, the meory address increases 1 every 16 bits. (And the minimal storage unit is 16 bits) As a result, the stack size and frame index is doubled, I just made the origin stack size divided by 2, and insert a code snippet in eliminateFrameIndex to deal with frame index. It works well in some cases. However, errors rise when stack pointer register is moved to another register, as a result, it couldn't find all the frame index.
Is there a way to inform LLVM that the memory address increases in a irregular way?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev