[LLVMdev] 64-bit to 32-bit conversion of pointers

Fernando Magno Quintao Pereira fernando at CS.UCLA.EDU
Thu May 15 17:45:20 PDT 2008


Guys, I need advice in how to handle a problem.

The problem:
     In X86_64, pointers are 64-bit variables, and are stored into 64-bit 
registers. However, some pointers are small enough that they can be 
represented as 32-bit values.
     Is there some way, in LLVM, to recognize which pointers can be stored 
into 32-bit registers, and so modify their class accordingly? Any ideas or 
hints would be appreciated.

Best,

Fernando



More information about the llvm-dev mailing list