<div dir="ltr"><div dir="ltr">On Tue, Jan 15, 2019 at 10:23 AM David Greene <<a href="mailto:dag@cray.com">dag@cray.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">That would be great, but I'm not even sure how it would be possible<br>
given the multitude of frontend languages and their ABI expectations.<br>
Wouldn't we have to carry quite a lot of language semantic information<br>
around? For example, AFAIK right now LLVM can't distinguish between an<br>
ordinary struct containing two doubles and double complex. The various<br>
vector ABIs may treat those two types differently, for example.<br></blockquote><div><br></div><div>Yep, we definitely would. Personally, I think we already pass so much frontend info down in the form of argument attributes that we might as well design a way to just directly say "these two doubles are C99 _Complex" instead of saying inventing ad-hoc conventions like "a struct of two doubles means one thing, but an array of two doubles means something else" or repurposing attributes like byval and inreg.</div></div></div>