<div dir="ltr">Ok. I just have a vision of this stuff getting 'abused' to acheive odd things in really really abstract and difficult to grok ways.<div><br></div><div>KISS?<br><div><br><div class="gmail_quote">On Tue, Apr 7, 2009 at 6:03 PM, David Greene <span dir="ltr"><<a href="mailto:dag@cray.com">dag@cray.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Tuesday 07 April 2009 01:18, someguy wrote:<br>
> Can you give an example of where you would use such a feature?<br>
> It seems entirely too abstract (at least to me) at the moment.<br>
<br>
</div>Basically I wanted to pass the various prefix encoding classes (XS, XD, etc.)<br>
down into generic SIMD multiclasses so that we could write rr / rm patterns<br>
once and reuse them with different prefix encoding base classes for the<br>
various x86 SIMD instruction sets.<br>
<br>
These prefix bits are reused in AVX and I found myself duplicating all of the<br>
SIMD boilerplate for AVX that already exists for SSE simply because the<br>
prefix encoding classes are hard-coded into the SSE classes.<br>
<br>
The way I'm going to do this is define some global prefix bits<> and pass<br>
those instead.  I'll use these just for AVX initially but we can move SSE over<br>
to them and share code going forward.<br>
<div><div></div><div class="h5"><br>
                                                 -Dave<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div></div></div>