<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 30, 2015 at 10:43 AM, Matt Arsenault <span dir="ltr"><<a href="mailto:arsenm2@gmail.com" target="_blank">arsenm2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class=""><br><div><blockquote type="cite"><div>On Jul 30, 2015, at 10:39 AM, David Blaikie <<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>> wrote:</div><br><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Why would that be a problem for this idea? The function argument would have a pointer type with an associated non-zero address space & the debug info would point to that & we could consult the pointer type to see the address space, no?</div><br></div></blockquote></div><br></span><div>I thought you were saying if the address was constant, i.e. the non-zero address space is only on a global variable and we could read it from that</div></div></blockquote><div><br></div><div>Sorry, what I was trying to say was speculating how my suggestion might break down/not work. If we ever encoded a pointer variable as just a constant (ConstantInt, etc) we might drop the address space, only to reconstitute it later with an inttoptr/addrspacecast, etc. That would mean that we couldn't rely on the llvm::Value that the debug info variable description pointed to would have an llvm::Type of PointerType with the required address space on it.<br><br>If we could rely on the llvm::Value that the debug info variable description points to always having a PointerType with the desired address space, then we could just get it from there & wouldn't need to add more info to the debug info variable description.<br><br>- David</div><div> </div></div><br></div></div>