Lines Matching refs:IntVal

428   GVArgc.IntVal = APInt(32, argv.size());  in runFunctionAsMain()
467 return runFunction(Fn, GVArgs).IntVal.getZExtValue(); in runFunctionAsMain()
598 Result.IntVal = APInt(C->getType()->getPrimitiveSizeInBits(), 0); in getConstantValue()
608 Result.AggregateVal[i].IntVal = in getConstantValue()
629 Result.AggregateVal[i].IntVal = in getConstantValue()
653 GV.IntVal = GV.IntVal.trunc(BitWidth); in getConstantValue()
659 GV.IntVal = GV.IntVal.zext(BitWidth); in getConstantValue()
665 GV.IntVal = GV.IntVal.sext(BitWidth); in getConstantValue()
683 GV.FloatVal = float(GV.IntVal.roundToDouble()); in getConstantValue()
685 GV.DoubleVal = GV.IntVal.roundToDouble(); in getConstantValue()
688 (void)apf.convertFromAPInt(GV.IntVal, in getConstantValue()
691 GV.IntVal = apf.bitcastToAPInt(); in getConstantValue()
698 GV.FloatVal = float(GV.IntVal.signedRoundToDouble()); in getConstantValue()
700 GV.DoubleVal = GV.IntVal.signedRoundToDouble(); in getConstantValue()
703 (void)apf.convertFromAPInt(GV.IntVal, in getConstantValue()
706 GV.IntVal = apf.bitcastToAPInt(); in getConstantValue()
715 GV.IntVal = APIntOps::RoundFloatToAPInt(GV.FloatVal, BitWidth); in getConstantValue()
717 GV.IntVal = APIntOps::RoundDoubleToAPInt(GV.DoubleVal, BitWidth); in getConstantValue()
719 APFloat apf = APFloat(APFloat::x87DoubleExtended(), GV.IntVal); in getConstantValue()
725 GV.IntVal = v; // endian? in getConstantValue()
733 GV.IntVal = APInt(PtrWidth, uintptr_t(GV.PointerVal)); in getConstantValue()
735 GV.IntVal = GV.IntVal.zextOrTrunc(IntWidth); in getConstantValue()
741 GV.IntVal = GV.IntVal.zextOrTrunc(PtrWidth); in getConstantValue()
742 assert(GV.IntVal.getBitWidth() <= 64 && "Bad pointer width"); in getConstantValue()
743 GV.PointerVal = PointerTy(uintptr_t(GV.IntVal.getZExtValue())); in getConstantValue()
754 GV.FloatVal = GV.IntVal.bitsToFloat(); in getConstantValue()
756 GV.DoubleVal = GV.IntVal.bitsToDouble(); in getConstantValue()
760 GV.IntVal = APInt::floatToBits(GV.FloatVal); in getConstantValue()
764 GV.IntVal = APInt::doubleToBits(GV.DoubleVal); in getConstantValue()
793 case Instruction::Add: GV.IntVal = LHS.IntVal + RHS.IntVal; break; in getConstantValue()
794 case Instruction::Sub: GV.IntVal = LHS.IntVal - RHS.IntVal; break; in getConstantValue()
795 case Instruction::Mul: GV.IntVal = LHS.IntVal * RHS.IntVal; break; in getConstantValue()
796 case Instruction::UDiv:GV.IntVal = LHS.IntVal.udiv(RHS.IntVal); break; in getConstantValue()
797 case Instruction::SDiv:GV.IntVal = LHS.IntVal.sdiv(RHS.IntVal); break; in getConstantValue()
798 case Instruction::URem:GV.IntVal = LHS.IntVal.urem(RHS.IntVal); break; in getConstantValue()
799 case Instruction::SRem:GV.IntVal = LHS.IntVal.srem(RHS.IntVal); break; in getConstantValue()
800 case Instruction::And: GV.IntVal = LHS.IntVal & RHS.IntVal; break; in getConstantValue()
801 case Instruction::Or: GV.IntVal = LHS.IntVal | RHS.IntVal; break; in getConstantValue()
802 case Instruction::Xor: GV.IntVal = LHS.IntVal ^ RHS.IntVal; break; in getConstantValue()
839 APFloat apfLHS = APFloat(Sem, LHS.IntVal); in getConstantValue()
843 apfLHS.add(APFloat(Sem, RHS.IntVal), APFloat::rmNearestTiesToEven); in getConstantValue()
844 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
847 apfLHS.subtract(APFloat(Sem, RHS.IntVal), in getConstantValue()
849 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
852 apfLHS.multiply(APFloat(Sem, RHS.IntVal), in getConstantValue()
854 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
857 apfLHS.divide(APFloat(Sem, RHS.IntVal), in getConstantValue()
859 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
862 apfLHS.mod(APFloat(Sem, RHS.IntVal)); in getConstantValue()
863 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
893 Result.IntVal = cast <ConstantFP>(C)->getValueAPF().bitcastToAPInt(); in getConstantValue()
896 Result.IntVal = cast<ConstantInt>(C)->getValue(); in getConstantValue()
981 intZero.IntVal = APInt(ElemTy->getScalarSizeInBits(), 0ull); in getConstantValue()
989 Result.AggregateVal[i].IntVal = cast<ConstantInt>( in getConstantValue()
992 Result.AggregateVal[i].IntVal = in getConstantValue()
999 Result.AggregateVal[i].IntVal = APInt( in getConstantValue()
1027 StoreIntToMemory(Val.IntVal, (uint8_t*)Ptr, StoreBytes); in StoreValueToMemory()
1036 memcpy(Ptr, Val.IntVal.getRawData(), 10); in StoreValueToMemory()
1053 unsigned numOfBytes =(Val.AggregateVal[i].IntVal.getBitWidth()+7)/8; in StoreValueToMemory()
1054 StoreIntToMemory(Val.AggregateVal[i].IntVal, in StoreValueToMemory()
1076 Result.IntVal = APInt(cast<IntegerType>(Ty)->getBitWidth(), 0); in LoadValueFromMemory()
1077 LoadIntFromMemory(Result.IntVal, (uint8_t*)Ptr, LoadBytes); in LoadValueFromMemory()
1093 Result.IntVal = APInt(80, y); in LoadValueFromMemory()
1116 intZero.IntVal = APInt(elemBitWidth, 0); in LoadValueFromMemory()
1119 LoadIntFromMemory(Result.AggregateVal[i].IntVal, in LoadValueFromMemory()