llvm.org GIT mirror llvm / a44defe
Explicitly cast narrowing conversions inside {}s that will become errors in C++0x. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136211 91177308-0d34-0410-b5e6-96231b3b80d8 Jeffrey Yasskin 9 years ago
6 changed file(s) with 8 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
373373 }
374374
375375 if (Scale) {
376 VariableGEPIndex Entry = {Index, Extension, Scale};
376 VariableGEPIndex Entry = {Index, Extension,
377 static_cast(Scale)};
377378 VarIndices.push_back(Entry);
378379 }
379380 }
27772777 // Analyze the access pattern of the vector to see if we can extract
27782778 // two subvectors and do the shuffle. The analysis is done by calculating
27792779 // the range of elements the mask access on both vectors.
2780 int MinRange[2] = { SrcNumElts+1, SrcNumElts+1};
2780 int MinRange[2] = { static_cast(SrcNumElts+1),
2781 static_cast(SrcNumElts+1)};
27812782 int MaxRange[2] = {-1, -1};
27822783
27832784 for (unsigned i = 0; i != MaskNumElts; ++i) {
356356 }
357357
358358 // Calculate what the SS field value should be...
359 static const unsigned SSTable[] = { ~0, 0, 1, ~0, 2, ~0, ~0, ~0, 3 };
359 static const unsigned SSTable[] = { ~0U, 0, 1, ~0U, 2, ~0U, ~0U, ~0U, 3 };
360360 unsigned SS = SSTable[Scale.getImm()];
361361
362362 if (BaseReg == 0) {
558558 }
559559
560560 // Calculate what the SS field value should be...
561 static const unsigned SSTable[] = { ~0, 0, 1, ~0, 2, ~0, ~0, ~0, 3 };
561 static const unsigned SSTable[] = { ~0U, 0, 1, ~0U, 2, ~0U, ~0U, ~0U, 3 };
562562 unsigned SS = SSTable[Scale.getImm()];
563563
564564 if (BaseReg == 0) {
63566356 return Op;
63576357
63586358 // SHUFPS the element to the lowest double word, then movss.
6359 int Mask[4] = { Idx, -1, -1, -1 };
6359 int Mask[4] = { static_cast(Idx), -1, -1, -1 };
63606360 EVT VVT = Op.getOperand(0).getValueType();
63616361 SDValue Vec = DAG.getVectorShuffle(VVT, dl, Op.getOperand(0),
63626362 DAG.getUNDEF(VVT), Mask);
4444 std::vector EmittedEvents;
4545 std::vector FreedEvents;
4646
47 int NextIndex;
47 unsigned NextIndex;
4848
4949 RecordingJITEventListener() : NextIndex(0) {}
5050