diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index a6c72ca2d1..fd915b01d6 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1522,10 +1522,11 @@ public: unsigned MinSplatBits = 0, bool isBigEndian = false) const; - /// isConstantSplat - Simpler form of isConstantSplat. Get the constant splat - /// when you only care about the value. Returns nullptr if this isn't a - /// constant splat vector. - ConstantSDNode *isConstantSplat() const; + /// getConstantSplatValue - Check if this is a constant splat, and if so, + /// return the splat value only if it is a ConstantSDNode. Otherwise + /// return nullptr. This is a simpler form of isConstantSplat. + /// Get the constant splat only if you care about the splat value. + ConstantSDNode *getConstantSplatValue() const; bool isConstant() const; |