<div>Nudge nudge...</div>
<div> </div>
<div>I know I need to do an error message checking test too.  This is just a start, to avoid too much change at once, and to make sure I'm on the right track.  Please review it before it gets too stale.</div>
<div> </div>
<div>-John<br><br></div>
<div class="gmail_quote">On Fri, Dec 11, 2009 at 8:03 PM, John Thompson <span dir="ltr"><<a href="mailto:john.thompson.jtsoftware@gmail.com">john.thompson.jtsoftware@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>Here's a stab a the first stage of adding AltiVec vector support, supporting the AltiVec types __vector, vector, __pixel, pixel, and bool.  I've also enclosed a couple of tests for it for the test/Parser directory.</div>

<div> </div>
<div>Some of it might be iffy, but I hope you can help me get it into shape with your feedback.</div>
<div> </div>
<div>I added a couple of flags to the DeclSpec class to help me know when the types are used, TypeAltiVecVector and TypeAltiVecPixel.  The AltiVec standard doesn't say much about pixel, other than it is used as "__vector __pixel", and that it represents 8 unsigned shorts.  Therefore, instead of making a new TST, I made it more like an alias via the TypeAltiVecPixel flag.</div>

<div> </div>
<div>I also added two corresponding flags to the VectorType class (and the getVectorType function).  Currently, these mainly just help with printing, but maybe there will be a need to distinguish down the road.  This is kind of an iffy part, because there were a couple of places where I don't know if the vector involved is an AltiVec vector, and the flags are used in the type look up.</div>

<div> </div>
<div>Per the previous conversation, I made __vector and __pixel true keywords if -faltivec is used, and vector and pixel are context-sensitive keywords.  The AltiVec standard also specifies that bool is a keyword in C, so I diddled the token flags a bit for that too.</div>

<div> </div>
<div>I put the Token patching code in inline functions, so I hope the performance impact is not too bad.<br clear="all"></div>
<div>There's probably some holes in the testing, i.e. sizeof.  But, because I'm piggy-backing on the existing vectors, I'm hoping most things will still just work.</div>
<div> </div>
<div>I'm not sure what the next stage should be, the built-in functions?</div>
<div> </div>
<div>Thanks.</div>
<div> </div>
<div>-John</div>
<div><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com" target="_blank">John.Thompson.JTSoftware@gmail.com</a><br><br></div></blockquote></div><br><br clear="all"><br>-- <br>John Thompson<br>
<a href="mailto:John.Thompson.JTSoftware@gmail.com">John.Thompson.JTSoftware@gmail.com</a><br><br>