[LLVMdev] backend question
Jacques Van Damme
Jacques.VanDamme at synopsys.com
Tue Mar 8 02:14:55 PST 2011
Hi All,
I am writing a backend for an architecture that has only 16-bit word addressing (No byte addresses ever. All data are always 16-bit).
How can I specify this in the backend?
As an example, consider the following instruction:
%arrayidx = getelementptr [129 x i16]* @flags, i16 0, i16 %i.043
When I generate assembler code, this now results in %i.043 being multiplied by 2 in the address calculation which result in a shift being emitted.
How can I avoid this?
Any help would be greatly appreciated.
Thanks in advance,
Jacques Van Damme.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110308/e06ac6e9/attachment.html>
More information about the llvm-dev
mailing list