[LLVMdev] Writing an address space re-numbering pass?

Dan Liew dan at su-root.co.uk
Fri May 16 08:21:01 PDT 2014


On 16 May 2014 16:00, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote:
> On 16 May 2014, at 09:41, Dan Liew <dan at su-root.co.uk> wrote:
>
>> 0 -> 1
>
> This will cause problems for you, because LLVM currently enforces an invariant that allocas must be in AS 0.

Thanks David. That's good to know. I don't ever intend to change types
that are already in address space 0 so that was a bad example to give,
sorry!

I don't suppose you have any insight on doing what I asked in the original post?

Thanks,
-- 
Dan Liew



More information about the llvm-dev mailing list