aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-25 22:49:59 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-25 22:49:59 +0000
commita87008d90b7d894cfca53d407642acfd7be2af3c (patch)
tree1d522682197aa4f39cc806de664511682a68ed86 /include/llvm/CodeGen
parent8a36f509cd0fd4c503c8564000f77713e1676c56 (diff)
Revert BuildVectorSDNode related patches: 65426, 65427, and 65296.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/SelectionDAG.h8
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h49
2 files changed, 0 insertions, 57 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h
index 32d9f420e0..9ecba590dd 100644
--- a/include/llvm/CodeGen/SelectionDAG.h
+++ b/include/llvm/CodeGen/SelectionDAG.h
@@ -403,14 +403,6 @@ public:
(unsigned)Ops.size() - (InFlag.getNode() == 0 ? 1 : 0));
}
- /// getBUILD_VECTOR - Return a new BUILD_VECTOR node
- SDValue getBUILD_VECTOR(MVT vecVT, DebugLoc dl, SDValue E1);
- SDValue getBUILD_VECTOR(MVT vecVT, DebugLoc dl, SDValue E1, SDValue E2);
- SDValue getBUILD_VECTOR(MVT vecVT, DebugLoc dl, SDValue E1, SDValue E2,
- SDValue E3, SDValue E4);
- SDValue getBUILD_VECTOR(MVT vecVT, DebugLoc dl, const SDValue *Elts,
- unsigned NumElts);
-
/// getUNDEF - Return an UNDEF node. UNDEF does not have a useful DebugLoc.
SDValue getUNDEF(MVT VT) {
return getNode(ISD::UNDEF, DebugLoc::getUnknownLoc(), VT);
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 9dc0829365..e874ba7c06 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1929,55 +1929,6 @@ public:
}
};
-/// BuildVectorSDNode - A container for ISD::BUILD_VECTOR. This is used to
-/// encapsulate common BUILD_VECTOR code and operations such as constant splat
-/// testing.
-class BuildVectorSDNode : public SDNode {
- //! Splat has undefined bits in it
- bool hasUndefSplatBitsFlag;
- //! The splat value
- uint64_t SplatBits;
- //! The undefined part of the splat
- uint64_t SplatUndef;
- //! The splat's size (1, 2, 4 or 8 bytes)
- unsigned SplatSize;
-
-protected:
- friend class SelectionDAG;
-
- //! Arbitrary element ISD::BUILD_VECTOR constructor
- explicit BuildVectorSDNode(MVT vecVT, DebugLoc dl, const SDValue *Elts,
- unsigned NumElts);
-
-public:
- //! Constant splat predicate.
- /*!
- Determine if this ISD::BUILD_VECTOR is a constant splat. This method
- returns information about the splat in \a hasUndefSplatBitsFlag,
- \a SplatBits, \a SplatUndef and \a SplatSize if the return value is
- true.
-
- \param[out] hasUndefSplatBitsFlag: true if the constant splat contains
- any undefined bits in the splat.
- \param[out] SplatBits: The constant splat value
- \param[out] SplatUndef: The undefined bits in the splat value
- \param[out] SplatSize: The size of the constant splat in bytes
- \param MinSplatBits: minimum number of bits in the constant splat, defaults
- to 0 for 'don't care', but normally one of [8, 16, 32, 64].
-
- \return true if the splat has the required minimum number of bits and the
- splat really is a constant splat (accounting for undef bits).
- */
- bool isConstantSplat(bool &hasUndefSplatBitsFlag, uint64_t &SplatBits,
- uint64_t &SplatUndef, unsigned &SplatSize,
- int MinSplatBits = 0);
-
- static bool classof(const BuildVectorSDNode *) { return true; }
- static bool classof(const SDNode *N) {
- return N->getOpcode() == ISD::BUILD_VECTOR;
- }
-};
-
/// SrcValueSDNode - An SDNode that holds an arbitrary LLVM IR Value. This is
/// used when the SelectionDAG needs to make a simple reference to something
/// in the LLVM IR representation.