[PATCH] Address Space Casting
    Michele Scandale 
    michele.scandale at gmail.com
       
    Thu Sep  5 02:22:13 PDT 2013
    
    
  
On 09/05/2013 09:27 AM, David Chisnall wrote:
> On 4 Sep 2013, at 20:59, Eli Friedman <eli.friedman at gmail.com> wrote:
> 
>> Or it could have been a ptrtoint+inttoptr pair originally, which would get turned into a bitcast by instcombine.
>>
>> I don't see what's wrong with the choice of turning such a bitcast back into a ptrtoint+inttoptr pair.
> 
> Yes, that's probably the best approach.  
> 
> David
> 
Fine. Just a question: what integer size should I use? The target data layout
information should not be available during the parsing of a Module, so I do not
know what integer to use for the ptrtoint. Is it safe to assume that the maximum
size is 64 bit?
Regards,
-Michele
    
    
More information about the llvm-commits
mailing list