<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 11, 2017 at 7:54 AM, Dylan McKay via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p style="margin:0px 0px 1.2em!important">It would be impossible to set the address space correctly on creation of <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">llvm::Function</code> objects because at that point in the pipeline, we do not know the target architecture.</p></blockquote></div><br>I don't have a strong opinion on any of this, but I just thought I'd pop by and mention that, as a front-end author, I do have to know my target architecture in order to generate correct IR, so the above approach doesn't necessarily seem like a problem.</div></div>