[LLVMdev] 64 bit shifts on 32 bit machines

Daniel M Gessel gessel at apple.com
Mon Oct 27 14:18:05 PDT 2008


Well, I ended up with subroutines in my target language (there's a  
post-optimizer that's likely to inline them anyway, but it knows the  
size of the code cache, so it can make an intelligent choice).

But it would still be nice to use common, tested code (I'm still  
debugging my routines :)

Dan




On Oct 27, 2008, at 5:00 PM, Duncan Sands wrote:

>>>> I'm getting libcalls for 64 bit shifts; any way I can get LLVM to
>>>> expand all these guys?
>>>
>>> Shifts by a non-constant amount, right?
>>
>> Yep, definitely.
>
> Are you sure expanding into inline code is a good idea?
> That could be quite a lot of code.
>
> Ciao,
>
> Duncan.




More information about the llvm-dev mailing list