reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/ExecutionEngine/ExecutionEngine.cpp
  613         Result.AggregateVal.resize(elemNum);
  617             Result.AggregateVal[i].IntVal =
  621               Result.AggregateVal[i] = getConstantValue(ElemUndef);
  632       Result.AggregateVal.resize(elemNum);
  635           Result.AggregateVal[i].IntVal =
  935     Result.AggregateVal.resize(elemNum);
  941         std::fill(Result.AggregateVal.begin(), Result.AggregateVal.end(),
  941         std::fill(Result.AggregateVal.begin(), Result.AggregateVal.end(),
  948             Result.AggregateVal[i].FloatVal = cast<ConstantFP>(
  954           Result.AggregateVal[i].FloatVal = CDV->getElementAsFloat(i);
  963         std::fill(Result.AggregateVal.begin(), Result.AggregateVal.end(),
  963         std::fill(Result.AggregateVal.begin(), Result.AggregateVal.end(),
  970             Result.AggregateVal[i].DoubleVal = cast<ConstantFP>(
  976           Result.AggregateVal[i].DoubleVal = CDV->getElementAsDouble(i);
  985         std::fill(Result.AggregateVal.begin(), Result.AggregateVal.end(),
  985         std::fill(Result.AggregateVal.begin(), Result.AggregateVal.end(),
  992             Result.AggregateVal[i].IntVal = cast<ConstantInt>(
  995             Result.AggregateVal[i].IntVal =
 1002           Result.AggregateVal[i].IntVal = APInt(
 1050     for (unsigned i = 0; i < Val.AggregateVal.size(); ++i) {
 1052         *(((double*)Ptr)+i) = Val.AggregateVal[i].DoubleVal;
 1054         *(((float*)Ptr)+i) = Val.AggregateVal[i].FloatVal;
 1056         unsigned numOfBytes =(Val.AggregateVal[i].IntVal.getBitWidth()+7)/8;
 1057         StoreIntToMemory(Val.AggregateVal[i].IntVal,
 1104       Result.AggregateVal.resize(numElems);
 1106         Result.AggregateVal[i].FloatVal = *((float*)Ptr+i);
 1109       Result.AggregateVal.resize(numElems);
 1111         Result.AggregateVal[i].DoubleVal = *((double*)Ptr+i);
 1117       Result.AggregateVal.resize(numElems, intZero);
 1119         LoadIntFromMemory(Result.AggregateVal[i].IntVal,
lib/ExecutionEngine/Interpreter/Execution.cpp
   70     R.AggregateVal.resize(Src.AggregateVal.size());
   70     R.AggregateVal.resize(Src.AggregateVal.size());
   78         for (unsigned i = 0; i < R.AggregateVal.size(); ++i)
   79           R.AggregateVal[i].FloatVal = -Src.AggregateVal[i].FloatVal;
   79           R.AggregateVal[i].FloatVal = -Src.AggregateVal[i].FloatVal;
   81         for (unsigned i = 0; i < R.AggregateVal.size(); ++i)
   82           R.AggregateVal[i].DoubleVal = -Src.AggregateVal[i].DoubleVal;
   82           R.AggregateVal[i].DoubleVal = -Src.AggregateVal[i].DoubleVal;
  447     for( size_t _i=0; _i<Src1.AggregateVal.size(); _i++)
  448       if (DestMask.AggregateVal[_i].IntVal == false)
  449         Dest.AggregateVal[_i].IntVal = APInt(1,false);
  590     assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
  590     assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
  591     Dest.AggregateVal.resize( Src1.AggregateVal.size() );
  591     Dest.AggregateVal.resize( Src1.AggregateVal.size() );
  593       for( size_t _i=0;_i<Src1.AggregateVal.size();_i++)
  594         Dest.AggregateVal[_i].IntVal = APInt(1,
  595         ( (Src1.AggregateVal[_i].FloatVal ==
  596         Src1.AggregateVal[_i].FloatVal) &&
  597         (Src2.AggregateVal[_i].FloatVal ==
  598         Src2.AggregateVal[_i].FloatVal)));
  600       for( size_t _i=0;_i<Src1.AggregateVal.size();_i++)
  601         Dest.AggregateVal[_i].IntVal = APInt(1,
  602         ( (Src1.AggregateVal[_i].DoubleVal ==
  603         Src1.AggregateVal[_i].DoubleVal) &&
  604         (Src2.AggregateVal[_i].DoubleVal ==
  605         Src2.AggregateVal[_i].DoubleVal)));
  621     assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
  621     assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
  622     Dest.AggregateVal.resize( Src1.AggregateVal.size() );
  622     Dest.AggregateVal.resize( Src1.AggregateVal.size() );
  624       for( size_t _i=0;_i<Src1.AggregateVal.size();_i++)
  625         Dest.AggregateVal[_i].IntVal = APInt(1,
  626         ( (Src1.AggregateVal[_i].FloatVal !=
  627            Src1.AggregateVal[_i].FloatVal) ||
  628           (Src2.AggregateVal[_i].FloatVal !=
  629            Src2.AggregateVal[_i].FloatVal)));
  631         for( size_t _i=0;_i<Src1.AggregateVal.size();_i++)
  632           Dest.AggregateVal[_i].IntVal = APInt(1,
  633           ( (Src1.AggregateVal[_i].DoubleVal !=
  634              Src1.AggregateVal[_i].DoubleVal) ||
  635             (Src2.AggregateVal[_i].DoubleVal !=
  636              Src2.AggregateVal[_i].DoubleVal)));
  652       assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
  652       assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
  653       Dest.AggregateVal.resize( Src1.AggregateVal.size() );
  653       Dest.AggregateVal.resize( Src1.AggregateVal.size() );
  654       for( size_t _i=0; _i<Src1.AggregateVal.size(); _i++)
  655         Dest.AggregateVal[_i].IntVal = APInt(1,val);
  743     assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
  743     assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
  744     R.AggregateVal.resize(Src1.AggregateVal.size());
  744     R.AggregateVal.resize(Src1.AggregateVal.size());
  802         for (unsigned i = 0; i < R.AggregateVal.size(); ++i)
  803           R.AggregateVal[i].FloatVal =
  804           fmod(Src1.AggregateVal[i].FloatVal, Src2.AggregateVal[i].FloatVal);
  804           fmod(Src1.AggregateVal[i].FloatVal, Src2.AggregateVal[i].FloatVal);
  807           for (unsigned i = 0; i < R.AggregateVal.size(); ++i)
  808             R.AggregateVal[i].DoubleVal =
  809             fmod(Src1.AggregateVal[i].DoubleVal, Src2.AggregateVal[i].DoubleVal);
  809             fmod(Src1.AggregateVal[i].DoubleVal, Src2.AggregateVal[i].DoubleVal);
  847       assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
  847       assert(Src1.AggregateVal.size() == Src2.AggregateVal.size());
  848       assert(Src2.AggregateVal.size() == Src3.AggregateVal.size());
  848       assert(Src2.AggregateVal.size() == Src3.AggregateVal.size());
  849       Dest.AggregateVal.resize( Src1.AggregateVal.size() );
  849       Dest.AggregateVal.resize( Src1.AggregateVal.size() );
  850       for (size_t i = 0; i < Src1.AggregateVal.size(); ++i)
  851         Dest.AggregateVal[i] = (Src1.AggregateVal[i].IntVal == 0) ?
  851         Dest.AggregateVal[i] = (Src1.AggregateVal[i].IntVal == 0) ?
  852           Src3.AggregateVal[i] : Src2.AggregateVal[i];
  852           Src3.AggregateVal[i] : Src2.AggregateVal[i];
 1197     uint32_t src1Size = uint32_t(Src1.AggregateVal.size());
 1198     assert(src1Size == Src2.AggregateVal.size());
 1201       uint64_t shiftAmount = Src2.AggregateVal[i].IntVal.getZExtValue();
 1202       llvm::APInt valueToShift = Src1.AggregateVal[i].IntVal;
 1204       Dest.AggregateVal.push_back(Result);
 1224     uint32_t src1Size = uint32_t(Src1.AggregateVal.size());
 1225     assert(src1Size == Src2.AggregateVal.size());
 1228       uint64_t shiftAmount = Src2.AggregateVal[i].IntVal.getZExtValue();
 1229       llvm::APInt valueToShift = Src1.AggregateVal[i].IntVal;
 1231       Dest.AggregateVal.push_back(Result);
 1251     size_t src1Size = Src1.AggregateVal.size();
 1252     assert(src1Size == Src2.AggregateVal.size());
 1255       uint64_t shiftAmount = Src2.AggregateVal[i].IntVal.getZExtValue();
 1256       llvm::APInt valueToShift = Src1.AggregateVal[i].IntVal;
 1258       Dest.AggregateVal.push_back(Result);
 1277     unsigned NumElts = Src.AggregateVal.size();
 1279     Dest.AggregateVal.resize(NumElts);
 1281       Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.trunc(DBitWidth);
 1281       Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.trunc(DBitWidth);
 1297     unsigned size = Src.AggregateVal.size();
 1299     Dest.AggregateVal.resize(size);
 1301       Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.sext(DBitWidth);
 1301       Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.sext(DBitWidth);
 1318     unsigned size = Src.AggregateVal.size();
 1320     Dest.AggregateVal.resize(size);
 1322       Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.zext(DBitWidth);
 1322       Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.zext(DBitWidth);
 1340     unsigned size = Src.AggregateVal.size();
 1342     Dest.AggregateVal.resize(size);
 1344       Dest.AggregateVal[i].FloatVal = (float)Src.AggregateVal[i].DoubleVal;
 1344       Dest.AggregateVal[i].FloatVal = (float)Src.AggregateVal[i].DoubleVal;
 1362     unsigned size = Src.AggregateVal.size();
 1364     Dest.AggregateVal.resize(size);
 1366       Dest.AggregateVal[i].DoubleVal = (double)Src.AggregateVal[i].FloatVal;
 1366       Dest.AggregateVal[i].DoubleVal = (double)Src.AggregateVal[i].FloatVal;
 1385     unsigned size = Src.AggregateVal.size();
 1387     Dest.AggregateVal.resize(size);
 1392         Dest.AggregateVal[i].IntVal = APIntOps::RoundFloatToAPInt(
 1393             Src.AggregateVal[i].FloatVal, DBitWidth);
 1396         Dest.AggregateVal[i].IntVal = APIntOps::RoundDoubleToAPInt(
 1397             Src.AggregateVal[i].DoubleVal, DBitWidth);
 1423     unsigned size = Src.AggregateVal.size();
 1425     Dest.AggregateVal.resize(size);
 1430         Dest.AggregateVal[i].IntVal = APIntOps::RoundFloatToAPInt(
 1431             Src.AggregateVal[i].FloatVal, DBitWidth);
 1434         Dest.AggregateVal[i].IntVal = APIntOps::RoundDoubleToAPInt(
 1435             Src.AggregateVal[i].DoubleVal, DBitWidth);
 1457     unsigned size = Src.AggregateVal.size();
 1459     Dest.AggregateVal.resize(size);
 1464         Dest.AggregateVal[i].FloatVal =
 1465             APIntOps::RoundAPIntToFloat(Src.AggregateVal[i].IntVal);
 1468         Dest.AggregateVal[i].DoubleVal =
 1469             APIntOps::RoundAPIntToDouble(Src.AggregateVal[i].IntVal);
 1489     unsigned size = Src.AggregateVal.size();
 1491     Dest.AggregateVal.resize(size);
 1496         Dest.AggregateVal[i].FloatVal =
 1497             APIntOps::RoundSignedAPIntToFloat(Src.AggregateVal[i].IntVal);
 1500         Dest.AggregateVal[i].DoubleVal =
 1501             APIntOps::RoundSignedAPIntToDouble(Src.AggregateVal[i].IntVal);
 1564       SrcNum = Src.AggregateVal.size();
 1571       SrcVec.AggregateVal.push_back(Src);
 1588     TempSrc.AggregateVal.resize(SrcNum);
 1591         TempSrc.AggregateVal[i].IntVal =
 1592             APInt::floatToBits(SrcVec.AggregateVal[i].FloatVal);
 1596         TempSrc.AggregateVal[i].IntVal =
 1597             APInt::doubleToBits(SrcVec.AggregateVal[i].DoubleVal);
 1600         TempSrc.AggregateVal[i].IntVal = SrcVec.AggregateVal[i].IntVal;
 1600         TempSrc.AggregateVal[i].IntVal = SrcVec.AggregateVal[i].IntVal;
 1619           Tmp = TempSrc.AggregateVal[SrcElt++].IntVal;
 1625         TempDst.AggregateVal.push_back(Elt);
 1635           Elt.IntVal = TempSrc.AggregateVal[i].IntVal;
 1641           TempDst.AggregateVal.push_back(Elt);
 1649         Dest.AggregateVal.resize(DstNum);
 1651           Dest.AggregateVal[i].DoubleVal =
 1652               TempDst.AggregateVal[i].IntVal.bitsToDouble();
 1654         Dest.AggregateVal.resize(DstNum);
 1656           Dest.AggregateVal[i].FloatVal =
 1657               TempDst.AggregateVal[i].IntVal.bitsToFloat();
 1663         Dest.DoubleVal = TempDst.AggregateVal[0].IntVal.bitsToDouble();
 1665         Dest.FloatVal = TempDst.AggregateVal[0].IntVal.bitsToFloat();
 1667         Dest.IntVal = TempDst.AggregateVal[0].IntVal;
 1808   if(Src1.AggregateVal.size() > indx) {
 1816       Dest.IntVal = Src1.AggregateVal[indx].IntVal;
 1819       Dest.FloatVal = Src1.AggregateVal[indx].FloatVal;
 1822       Dest.DoubleVal = Src1.AggregateVal[indx].DoubleVal;
 1844   Dest.AggregateVal = Src1.AggregateVal;
 1844   Dest.AggregateVal = Src1.AggregateVal;
 1846   if(Src1.AggregateVal.size() <= indx)
 1852       Dest.AggregateVal[indx].IntVal = Src2.IntVal;
 1855       Dest.AggregateVal[indx].FloatVal = Src2.FloatVal;
 1858       Dest.AggregateVal[indx].DoubleVal = Src2.DoubleVal;
 1879   unsigned src1Size = (unsigned)Src1.AggregateVal.size();
 1880   unsigned src2Size = (unsigned)Src2.AggregateVal.size();
 1881   unsigned src3Size = (unsigned)Src3.AggregateVal.size();
 1883   Dest.AggregateVal.resize(src3Size);
 1891         unsigned j = Src3.AggregateVal[i].IntVal.getZExtValue();
 1893           Dest.AggregateVal[i].IntVal = Src1.AggregateVal[j].IntVal;
 1893           Dest.AggregateVal[i].IntVal = Src1.AggregateVal[j].IntVal;
 1895           Dest.AggregateVal[i].IntVal = Src2.AggregateVal[j-src1Size].IntVal;
 1895           Dest.AggregateVal[i].IntVal = Src2.AggregateVal[j-src1Size].IntVal;
 1907         unsigned j = Src3.AggregateVal[i].IntVal.getZExtValue();
 1909           Dest.AggregateVal[i].FloatVal = Src1.AggregateVal[j].FloatVal;
 1909           Dest.AggregateVal[i].FloatVal = Src1.AggregateVal[j].FloatVal;
 1911           Dest.AggregateVal[i].FloatVal = Src2.AggregateVal[j-src1Size].FloatVal;
 1911           Dest.AggregateVal[i].FloatVal = Src2.AggregateVal[j-src1Size].FloatVal;
 1918         unsigned j = Src3.AggregateVal[i].IntVal.getZExtValue();
 1920           Dest.AggregateVal[i].DoubleVal = Src1.AggregateVal[j].DoubleVal;
 1920           Dest.AggregateVal[i].DoubleVal = Src1.AggregateVal[j].DoubleVal;
 1922           Dest.AggregateVal[i].DoubleVal =
 1923             Src2.AggregateVal[j-src1Size].DoubleVal;
 1943     pSrc = &pSrc->AggregateVal[*IdxBegin];
 1964       Dest.AggregateVal = pSrc->AggregateVal;
 1964       Dest.AggregateVal = pSrc->AggregateVal;
 1988     pDest = &pDest->AggregateVal[*IdxBegin];
 2011       pDest->AggregateVal = Src2.AggregateVal;
 2011       pDest->AggregateVal = Src2.AggregateVal;