• Home
  • Raw
  • Download

Lines Matching refs:IntVal

428   GVArgc.IntVal = APInt(32, argv.size());  in runFunctionAsMain()
467 return runFunction(Fn, GVArgs).IntVal.getZExtValue(); in runFunctionAsMain()
605 Result.IntVal = APInt(C->getType()->getPrimitiveSizeInBits(), 0); in getConstantValue()
615 Result.AggregateVal[i].IntVal = in getConstantValue()
633 Result.AggregateVal[i].IntVal = in getConstantValue()
657 GV.IntVal = GV.IntVal.trunc(BitWidth); in getConstantValue()
663 GV.IntVal = GV.IntVal.zext(BitWidth); in getConstantValue()
669 GV.IntVal = GV.IntVal.sext(BitWidth); in getConstantValue()
687 GV.FloatVal = float(GV.IntVal.roundToDouble()); in getConstantValue()
689 GV.DoubleVal = GV.IntVal.roundToDouble(); in getConstantValue()
692 (void)apf.convertFromAPInt(GV.IntVal, in getConstantValue()
695 GV.IntVal = apf.bitcastToAPInt(); in getConstantValue()
702 GV.FloatVal = float(GV.IntVal.signedRoundToDouble()); in getConstantValue()
704 GV.DoubleVal = GV.IntVal.signedRoundToDouble(); in getConstantValue()
707 (void)apf.convertFromAPInt(GV.IntVal, in getConstantValue()
710 GV.IntVal = apf.bitcastToAPInt(); in getConstantValue()
719 GV.IntVal = APIntOps::RoundFloatToAPInt(GV.FloatVal, BitWidth); in getConstantValue()
721 GV.IntVal = APIntOps::RoundDoubleToAPInt(GV.DoubleVal, BitWidth); in getConstantValue()
723 APFloat apf = APFloat(APFloat::x87DoubleExtended, GV.IntVal); in getConstantValue()
729 GV.IntVal = v; // endian? in getConstantValue()
737 GV.IntVal = APInt(PtrWidth, uintptr_t(GV.PointerVal)); in getConstantValue()
739 GV.IntVal = GV.IntVal.zextOrTrunc(IntWidth); in getConstantValue()
745 GV.IntVal = GV.IntVal.zextOrTrunc(PtrWidth); in getConstantValue()
746 assert(GV.IntVal.getBitWidth() <= 64 && "Bad pointer width"); in getConstantValue()
747 GV.PointerVal = PointerTy(uintptr_t(GV.IntVal.getZExtValue())); in getConstantValue()
758 GV.FloatVal = GV.IntVal.bitsToFloat(); in getConstantValue()
760 GV.DoubleVal = GV.IntVal.bitsToDouble(); in getConstantValue()
764 GV.IntVal = APInt::floatToBits(GV.FloatVal); in getConstantValue()
768 GV.IntVal = APInt::doubleToBits(GV.DoubleVal); in getConstantValue()
797 case Instruction::Add: GV.IntVal = LHS.IntVal + RHS.IntVal; break; in getConstantValue()
798 case Instruction::Sub: GV.IntVal = LHS.IntVal - RHS.IntVal; break; in getConstantValue()
799 case Instruction::Mul: GV.IntVal = LHS.IntVal * RHS.IntVal; break; in getConstantValue()
800 case Instruction::UDiv:GV.IntVal = LHS.IntVal.udiv(RHS.IntVal); break; in getConstantValue()
801 case Instruction::SDiv:GV.IntVal = LHS.IntVal.sdiv(RHS.IntVal); break; in getConstantValue()
802 case Instruction::URem:GV.IntVal = LHS.IntVal.urem(RHS.IntVal); break; in getConstantValue()
803 case Instruction::SRem:GV.IntVal = LHS.IntVal.srem(RHS.IntVal); break; in getConstantValue()
804 case Instruction::And: GV.IntVal = LHS.IntVal & RHS.IntVal; break; in getConstantValue()
805 case Instruction::Or: GV.IntVal = LHS.IntVal | RHS.IntVal; break; in getConstantValue()
806 case Instruction::Xor: GV.IntVal = LHS.IntVal ^ RHS.IntVal; break; in getConstantValue()
843 APFloat apfLHS = APFloat(Sem, LHS.IntVal); in getConstantValue()
847 apfLHS.add(APFloat(Sem, RHS.IntVal), APFloat::rmNearestTiesToEven); in getConstantValue()
848 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
851 apfLHS.subtract(APFloat(Sem, RHS.IntVal), in getConstantValue()
853 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
856 apfLHS.multiply(APFloat(Sem, RHS.IntVal), in getConstantValue()
858 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
861 apfLHS.divide(APFloat(Sem, RHS.IntVal), in getConstantValue()
863 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
866 apfLHS.mod(APFloat(Sem, RHS.IntVal)); in getConstantValue()
867 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
897 Result.IntVal = cast <ConstantFP>(C)->getValueAPF().bitcastToAPInt(); in getConstantValue()
900 Result.IntVal = cast<ConstantInt>(C)->getValue(); in getConstantValue()
979 intZero.IntVal = APInt(ElemTy->getScalarSizeInBits(), 0ull); in getConstantValue()
987 Result.AggregateVal[i].IntVal = cast<ConstantInt>( in getConstantValue()
990 Result.AggregateVal[i].IntVal = in getConstantValue()
997 Result.AggregateVal[i].IntVal = APInt( in getConstantValue()
1019 static void StoreIntToMemory(const APInt &IntVal, uint8_t *Dst, in StoreIntToMemory() argument
1021 assert((IntVal.getBitWidth()+7)/8 >= StoreBytes && "Integer too small!"); in StoreIntToMemory()
1022 const uint8_t *Src = (const uint8_t *)IntVal.getRawData(); in StoreIntToMemory()
1052 StoreIntToMemory(Val.IntVal, (uint8_t*)Ptr, StoreBytes); in StoreValueToMemory()
1061 memcpy(Ptr, Val.IntVal.getRawData(), 10); in StoreValueToMemory()
1077 unsigned numOfBytes =(Val.AggregateVal[i].IntVal.getBitWidth()+7)/8; in StoreValueToMemory()
1078 StoreIntToMemory(Val.AggregateVal[i].IntVal, in StoreValueToMemory()
1092 static void LoadIntFromMemory(APInt &IntVal, uint8_t *Src, unsigned LoadBytes) { in LoadIntFromMemory() argument
1093 assert((IntVal.getBitWidth()+7)/8 >= LoadBytes && "Integer too small!"); in LoadIntFromMemory()
1095 const_cast<uint64_t *>(IntVal.getRawData())); in LoadIntFromMemory()
1127 Result.IntVal = APInt(cast<IntegerType>(Ty)->getBitWidth(), 0); in LoadValueFromMemory()
1128 LoadIntFromMemory(Result.IntVal, (uint8_t*)Ptr, LoadBytes); in LoadValueFromMemory()
1144 Result.IntVal = APInt(80, y); in LoadValueFromMemory()
1164 intZero.IntVal = APInt(elemBitWidth, 0); in LoadValueFromMemory()
1167 LoadIntFromMemory(Result.AggregateVal[i].IntVal, in LoadValueFromMemory()