[LLVMdev] Address space extension
Michele Scandale
michele.scandale at gmail.com
Thu Aug 8 07:19:49 PDT 2013
On 08/08/2013 02:52 PM, Micah Villmow wrote:
> This is something I proposed last year, so you might want to read up on that discussion first.
>
> You can find it here:
> http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-September/053277.html
Uhm... I read the discussion, probably I've not understood the problem
well: the conclusion (it has been committed?) is that to handle address
space conversion that imply a change in the size of pointers must be
expressed as a pair ptrtoint/inttoptr. What if the address space
conversione logically change also the value of the pointer?
Indeed, trying to port that solution in the context of in-progress
proposal: how to handle the fact that the addrspace information is
logical? Is the frontend that need to produce the correct address space
conversion? Why having an opaque instruction/generic-intrinsic that
represent the conversion (what the conversion imply is target specific,
so that each target should lower this intrinsic using the knowledge of
the source and destination address space) is bad?
Thanks again.
-Michele
More information about the llvm-dev
mailing list