[llvm-commits] PATCH: new Value::getThruSplat API

Nick Lewycky nicholas at mxc.ca
Tue Oct 26 23:34:33 PDT 2010


This patch adds a new method on Value called getThruSplat() which 
returns the splatted value iff this is a ConstantValue with a splat, or 
'this' otherwise. I demonstrate its usage by updating 
InstructionSimplify to uniformly handle splat vectors alongside 
ConstantInt values.

Please review!

Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: get-thru-splat.patch
Type: text/x-diff
Size: 3251 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101026/71bd7cf5/attachment.patch>


More information about the llvm-commits mailing list