<div dir="ltr">On Fri, Sep 20, 2013 at 2:50 PM, Iain Sandoe <span dir="ltr"><<a href="mailto:iain@codesourcery.com" target="_blank">iain@codesourcery.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello Eric,<br>
<div class="im"><br>
On 20 Sep 2013, at 22:17, Eric Christopher wrote:<br>
<br>
> I'd probably expect to lower builtins to multiple basic blocks in the<br>
</div>> backend if they needed to do so…<br>
<br>
Perhaps, then,  I'm missing an alternate solution,<br>
we wanted to expand in the FE to expose operands to opportunities for scalarisation etc.<br>
(that, in particular, is an important optimisation for the target)<br>
<br>
- so am I attempting something unsupported?<br><br></blockquote><div><br></div><div>You should be able to generate basically anything from CGBuiltin.cpp, using code similar to what you've written.  Your code probably just has a bug somewhere.</div>
<div><br></div><div>In particular, your usage of <span style="color:rgb(0,0,0);white-space:pre-wrap">getGlobalContext() looks suspect.</span></div><div><br></div><div>-Eli </div></div><br></div></div>