aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-11-13 01:45:18 +0000
committerDale Johannesen <dalej@apple.com>2009-11-13 01:45:18 +0000
commit48fd1e4422178b0f4989d6c06fc8abfb5b9fd12d (patch)
tree92aba7698ff88ea82a86c717808ad9f6f8904ca3 /include/llvm/CodeGen
parent44b3c3ef7154bcc1a0637b1cf253d14864e96cc3 (diff)
downloadexternal_llvm-48fd1e4422178b0f4989d6c06fc8abfb5b9fd12d.zip
external_llvm-48fd1e4422178b0f4989d6c06fc8abfb5b9fd12d.tar.gz
external_llvm-48fd1e4422178b0f4989d6c06fc8abfb5b9fd12d.tar.bz2
Adjust isConstantSplat to allow for big-endian targets.
PPC is such a target; make it work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index f960851..d4d40b1 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1953,10 +1953,10 @@ public:
/// that value are zero, and the corresponding bits in the SplatUndef mask
/// are set. The SplatBitSize value is set to the splat element size in
/// bits. HasAnyUndefs is set to true if any bits in the vector are
- /// undefined.
+ /// undefined. isBigEndian describes the endianness of the target.
bool isConstantSplat(APInt &SplatValue, APInt &SplatUndef,
unsigned &SplatBitSize, bool &HasAnyUndefs,
- unsigned MinSplatBits = 0);
+ unsigned MinSplatBits = 0, bool isBigEndian = false);
static inline bool classof(const BuildVectorSDNode *) { return true; }
static inline bool classof(const SDNode *N) {