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/Target/PowerPC/PPCISelLowering.cpp | |
| 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/Target/PowerPC/PPCISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 9723c7c8c2a..edf4294c7a3 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -2257,7 +2257,7 @@ static SDOperand BuildSplatI(int Val, unsigned SplatSize, MVT::ValueType VT, MVT::ValueType CanonicalVT = VTys[SplatSize-1]; // Build a canonical splat for this value. - SDOperand Elt = DAG.getConstant(Val, MVT::getVectorBaseType(CanonicalVT)); + SDOperand Elt = DAG.getConstant(Val, MVT::getVectorElementType(CanonicalVT)); SmallVector<SDOperand, 8> Ops; Ops.assign(MVT::getVectorNumElements(CanonicalVT), Elt); SDOperand Res = DAG.getNode(ISD::BUILD_VECTOR, CanonicalVT, @@ -2647,7 +2647,7 @@ static SDOperand LowerVECTOR_SHUFFLE(SDOperand Op, SelectionDAG &DAG) { // The SHUFFLE_VECTOR mask is almost exactly what we want for vperm, except // that it is in input element units, not in bytes. Convert now. - MVT::ValueType EltVT = MVT::getVectorBaseType(V1.getValueType()); + MVT::ValueType EltVT = MVT::getVectorElementType(V1.getValueType()); unsigned BytesPerElement = MVT::getSizeInBits(EltVT)/8; SmallVector<SDOperand, 16> ResultMask; |

