[LLVMdev] Modeling 16-bit pointer registers for an 8-bit target

Evan Cheng evan.cheng at apple.com
Fri Aug 8 11:49:00 PDT 2008


On Aug 7, 2008, at 9:45 AM, Sanjiv.Gupta at microchip.com wrote:

>>
>> I don't think there is code in Legalizer to expand GlobalAddress. But
> you
>> can custom lower it. X86 custom lower GlobalAddress nodes for a
> different
>> reason.
>>
>> Evan
>>
>
> Hmmm...That means we have to make i16 as a legal type (since
> GlobalAddresses are 16-bits) and custom lower all 16-bit operations to
> 8-bit operations. I was thinking to take advantage of the already
> present ExpandOp infrastructure.

You can, in a lot of cases. But not for GV's currently since the code  
isn't there. Most targets custom lower GV's currently.

Evan

>
>
> -Sanjiv
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list