[llvm-commits] PATCH: new Value::getThruSplat API
    Dan Gohman 
    gohman at apple.com
       
    Wed Oct 27 10:57:45 PDT 2010
    
    
  
On Oct 26, 2010, at 11:34 PM, Nick Lewycky wrote:
> 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.
Looks reasonable to me.
How about "getScalarValue" instead of "getThruSplat"?
I don't have strong opinions about it though.
Dan
    
    
More information about the llvm-commits
mailing list