diff options
author | Dan Gohman <gohman@apple.com> | 2007-06-14 22:58:02 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-06-14 22:58:02 +0000 |
commit | 5c4413120f8e3b7645d4cdf98124f28a2019cbb1 (patch) | |
tree | b66b342811530070dd8db6655b6c6ff20ac0efc4 /llvm/lib/CodeGen | |
parent | 616627b002fb5735aee4d855dbe9445a26eb5ae8 (diff) | |
download | bcm5719-llvm-5c4413120f8e3b7645d4cdf98124f28a2019cbb1.tar.gz bcm5719-llvm-5c4413120f8e3b7645d4cdf98124f28a2019cbb1.zip |
Rename MVT::getVectorBaseType to MVT::getVectorElementType.
llvm-svn: 37579
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 10 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
4 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 1dac2ca1ef8..8cc40363479 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -1809,7 +1809,7 @@ SDOperand DAGCombiner::visitXOR(SDNode *N) { return DAG.getConstant(0, VT); } else if (!AfterLegalize || TLI.isOperationLegal(ISD::BUILD_VECTOR, VT)) { // Produce a vector of zeros. - SDOperand El = DAG.getConstant(0, MVT::getVectorBaseType(VT)); + SDOperand El = DAG.getConstant(0, MVT::getVectorElementType(VT)); std::vector<SDOperand> Ops(MVT::getVectorNumElements(VT), El); return DAG.getNode(ISD::BUILD_VECTOR, VT, &Ops[0], Ops.size()); } diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index aeb6f276c5f..7d57c00c141 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1014,7 +1014,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { unsigned NumElts = MVT::getVectorNumElements(Tmp1.getValueType()); MVT::ValueType ShufMaskVT = MVT::getIntVectorWithNumElements(NumElts); - MVT::ValueType ShufMaskEltVT = MVT::getVectorBaseType(ShufMaskVT); + MVT::ValueType ShufMaskEltVT = MVT::getVectorElementType(ShufMaskVT); // We generate a shuffle of InVec and ScVec, so the shuffle mask should // be 0,1,2,3,4,5... with the appropriate element replaced with elt 0 of @@ -1110,7 +1110,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { // FALLTHROUGH case TargetLowering::Expand: { MVT::ValueType VT = Node->getValueType(0); - MVT::ValueType EltVT = MVT::getVectorBaseType(VT); + MVT::ValueType EltVT = MVT::getVectorElementType(VT); MVT::ValueType PtrVT = TLI.getPointerTy(); SDOperand Mask = Node->getOperand(2); unsigned NumElems = Mask.getNumOperands(); @@ -2386,7 +2386,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { "Cannot expand this binary operator!"); // Expand the operation into a bunch of nasty scalar code. SmallVector<SDOperand, 8> Ops; - MVT::ValueType EltVT = MVT::getVectorBaseType(Node->getValueType(0)); + MVT::ValueType EltVT = MVT::getVectorElementType(Node->getValueType(0)); MVT::ValueType PtrVT = TLI.getPointerTy(); for (unsigned i = 0, e = MVT::getVectorNumElements(Node->getValueType(0)); i != e; ++i) { @@ -4006,7 +4006,7 @@ SDOperand SelectionDAGLegalize::ExpandBUILD_VECTOR(SDNode *Node) { // Build the shuffle constant vector: <0, 0, 0, 0> MVT::ValueType MaskVT = MVT::getIntVectorWithNumElements(NumElems); - SDOperand Zero = DAG.getConstant(0, MVT::getVectorBaseType(MaskVT)); + SDOperand Zero = DAG.getConstant(0, MVT::getVectorElementType(MaskVT)); std::vector<SDOperand> ZeroVec(NumElems, Zero); SDOperand SplatMask = DAG.getNode(ISD::BUILD_VECTOR, MaskVT, &ZeroVec[0], ZeroVec.size()); @@ -4036,7 +4036,7 @@ SDOperand SelectionDAGLegalize::ExpandBUILD_VECTOR(SDNode *Node) { E = Values.end(); I != E; ++I) { for (std::vector<unsigned>::iterator II = I->second.begin(), EE = I->second.end(); II != EE; ++II) - MaskVec[*II] = DAG.getConstant(i, MVT::getVectorBaseType(MaskVT)); + MaskVec[*II] = DAG.getConstant(i, MVT::getVectorElementType(MaskVT)); i += NumElems; } SDOperand ShuffleMask = DAG.getNode(ISD::BUILD_VECTOR, MaskVT, diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index e3ee9fb0d8c..5c24b931e17 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1114,7 +1114,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, break; case ISD::SCALAR_TO_VECTOR: assert(MVT::isVector(VT) && !MVT::isVector(Operand.getValueType()) && - MVT::getVectorBaseType(VT) == Operand.getValueType() && + MVT::getVectorElementType(VT) == Operand.getValueType() && "Illegal SCALAR_TO_VECTOR node!"); break; case ISD::FNEG: @@ -1593,7 +1593,7 @@ SDOperand SelectionDAG::getExtLoad(ISD::LoadExtType ExtType, MVT::ValueType VT, ExtType = ISD::NON_EXTLOAD; if (MVT::isVector(VT)) - assert(EVT == MVT::getVectorBaseType(VT) && "Invalid vector extload!"); + assert(EVT == MVT::getVectorElementType(VT) && "Invalid vector extload!"); else assert(EVT < VT && "Should only be an extending load, not truncating!"); assert((ExtType == ISD::EXTLOAD || MVT::isInteger(VT)) && diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 69d51d81c23..ed833e26efd 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -793,7 +793,7 @@ SDOperand SelectionDAGLowering::getValue(const Value *V) { if (MVT::isVector(PTyElementVT)) { Ops.push_back(DAG.getConstant(NE * MVT::getVectorNumElements(PTyElementVT), MVT::i32)); - Ops.push_back(DAG.getValueType(MVT::getVectorBaseType(PTyElementVT))); + Ops.push_back(DAG.getValueType(MVT::getVectorElementType(PTyElementVT))); N = DAG.getNode(ISD::VCONCAT_VECTORS, MVT::Vector, &Ops[0], Ops.size()); } else { Ops.push_back(DAG.getConstant(NE, MVT::i32)); @@ -2905,7 +2905,7 @@ SDOperand RegsForValue::getCopyFromRegs(SelectionDAG &DAG, return DAG.getNode(ISD::VBIT_CONVERT, MVT::Vector, Val, DAG.getConstant(MVT::getVectorNumElements(RegVT), MVT::i32), - DAG.getValueType(MVT::getVectorBaseType(RegVT))); + DAG.getValueType(MVT::getVectorElementType(RegVT))); } if (MVT::isInteger(RegVT)) { |