Author: ctopper Date: Sat Jun 11 19:41:24 2016 New Revision: 272492 URL: http://llvm.org/viewvc/llvm-project?rev=272492&view=rev Log: [CodeGen] Update to use an ArrayRef of uint32_t instead of int in calls to CreateShuffleVector to match llvm interface change.
Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=272492&r1=272491&r2=272492&view=diff ============================================================================== --- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original) +++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Sat Jun 11 19:41:24 2016 @@ -3268,7 +3268,7 @@ Value *CodeGenFunction::EmitCommonNeonBu case NEON::BI__builtin_neon_vext_v: case NEON::BI__builtin_neon_vextq_v: { int CV = cast<ConstantInt>(Ops[2])->getSExtValue(); - SmallVector<int, 16> Indices; + SmallVector<uint32_t, 16> Indices; for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) Indices.push_back(i+CV); @@ -3472,7 +3472,7 @@ Value *CodeGenFunction::EmitCommonNeonBu Value *SV = nullptr; for (unsigned vi = 0; vi != 2; ++vi) { - SmallVector<int, 16> Indices; + SmallVector<uint32_t, 16> Indices; for (unsigned i = 0, e = VTy->getNumElements(); i != e; i += 2) { Indices.push_back(i+vi); Indices.push_back(i+e+vi); @@ -3500,7 +3500,7 @@ Value *CodeGenFunction::EmitCommonNeonBu Value *SV = nullptr; for (unsigned vi = 0; vi != 2; ++vi) { - SmallVector<int, 16> Indices; + SmallVector<uint32_t, 16> Indices; for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) Indices.push_back(2*i+vi); @@ -3518,7 +3518,7 @@ Value *CodeGenFunction::EmitCommonNeonBu Value *SV = nullptr; for (unsigned vi = 0; vi != 2; ++vi) { - SmallVector<int, 16> Indices; + SmallVector<uint32_t, 16> Indices; for (unsigned i = 0, e = VTy->getNumElements(); i != e; i += 2) { Indices.push_back((i + vi*e) >> 1); Indices.push_back(((i + vi*e) >> 1)+e); @@ -3573,7 +3573,7 @@ static Value *packTBLDVectorList(CodeGen TblOps.push_back(ExtOp); // Build a vector containing sequential number like (0, 1, 2, ..., 15) - SmallVector<int, 16> Indices; + SmallVector<uint32_t, 16> Indices; llvm::VectorType *TblTy = cast<llvm::VectorType>(Ops[0]->getType()); for (unsigned i = 0, e = TblTy->getNumElements(); i != e; ++i) { Indices.push_back(2*i); @@ -6158,7 +6158,7 @@ Value *CodeGenFunction::EmitAArch64Built Value *SV = nullptr; for (unsigned vi = 0; vi != 2; ++vi) { - SmallVector<int, 16> Indices; + SmallVector<uint32_t, 16> Indices; for (unsigned i = 0, e = VTy->getNumElements(); i != e; i += 2) { Indices.push_back(i+vi); Indices.push_back(i+e+vi); @@ -6177,7 +6177,7 @@ Value *CodeGenFunction::EmitAArch64Built Value *SV = nullptr; for (unsigned vi = 0; vi != 2; ++vi) { - SmallVector<int, 16> Indices; + SmallVector<uint32_t, 16> Indices; for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) Indices.push_back(2*i+vi); @@ -6195,7 +6195,7 @@ Value *CodeGenFunction::EmitAArch64Built Value *SV = nullptr; for (unsigned vi = 0; vi != 2; ++vi) { - SmallVector<int, 16> Indices; + SmallVector<uint32_t, 16> Indices; for (unsigned i = 0, e = VTy->getNumElements(); i != e; i += 2) { Indices.push_back((i + vi*e) >> 1); Indices.push_back(((i + vi*e) >> 1)+e); @@ -6288,7 +6288,7 @@ static Value *getMaskVecValue(CodeGenFun // If we have less than 8 elements, then the starting mask was an i8 and // we need to extract down to the right number of elements. if (NumElts < 8) { - int Indices[4]; + uint32_t Indices[4]; for (unsigned i = 0; i != NumElts; ++i) Indices[i] = i; MaskVec = CGF.Builder.CreateShuffleVector(MaskVec, MaskVec, @@ -6682,7 +6682,7 @@ Value *CodeGenFunction::EmitX86BuiltinEx Ops[0] = llvm::Constant::getNullValue(Ops[0]->getType()); } - int Indices[64]; + uint32_t Indices[64]; // 256-bit palignr operates on 128-bit lanes so we need to handle that for (unsigned l = 0; l != NumElts; l += 16) { for (unsigned i = 0; i != 16; ++i) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits