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()
628 Result.AggregateVal[i].IntVal = in getConstantValue()
640 Result.AggregateVal[i].IntVal = in getConstantValue()
665 GV.IntVal = GV.IntVal.trunc(BitWidth); in getConstantValue()
671 GV.IntVal = GV.IntVal.zext(BitWidth); in getConstantValue()
677 GV.IntVal = GV.IntVal.sext(BitWidth); in getConstantValue()
695 GV.FloatVal = float(GV.IntVal.roundToDouble()); in getConstantValue()
697 GV.DoubleVal = GV.IntVal.roundToDouble(); in getConstantValue()
700 (void)apf.convertFromAPInt(GV.IntVal, in getConstantValue()
703 GV.IntVal = apf.bitcastToAPInt(); in getConstantValue()
710 GV.FloatVal = float(GV.IntVal.signedRoundToDouble()); in getConstantValue()
712 GV.DoubleVal = GV.IntVal.signedRoundToDouble(); in getConstantValue()
715 (void)apf.convertFromAPInt(GV.IntVal, in getConstantValue()
718 GV.IntVal = apf.bitcastToAPInt(); in getConstantValue()
727 GV.IntVal = APIntOps::RoundFloatToAPInt(GV.FloatVal, BitWidth); in getConstantValue()
729 GV.IntVal = APIntOps::RoundDoubleToAPInt(GV.DoubleVal, BitWidth); in getConstantValue()
731 APFloat apf = APFloat(APFloat::x87DoubleExtended(), GV.IntVal); in getConstantValue()
737 GV.IntVal = v; // endian? in getConstantValue()
745 GV.IntVal = APInt(PtrWidth, uintptr_t(GV.PointerVal)); in getConstantValue()
747 GV.IntVal = GV.IntVal.zextOrTrunc(IntWidth); in getConstantValue()
753 GV.IntVal = GV.IntVal.zextOrTrunc(PtrWidth); in getConstantValue()
754 assert(GV.IntVal.getBitWidth() <= 64 && "Bad pointer width"); in getConstantValue()
755 GV.PointerVal = PointerTy(uintptr_t(GV.IntVal.getZExtValue())); in getConstantValue()
766 GV.FloatVal = GV.IntVal.bitsToFloat(); in getConstantValue()
768 GV.DoubleVal = GV.IntVal.bitsToDouble(); in getConstantValue()
772 GV.IntVal = APInt::floatToBits(GV.FloatVal); in getConstantValue()
776 GV.IntVal = APInt::doubleToBits(GV.DoubleVal); in getConstantValue()
805 case Instruction::Add: GV.IntVal = LHS.IntVal + RHS.IntVal; break; in getConstantValue()
806 case Instruction::Sub: GV.IntVal = LHS.IntVal - RHS.IntVal; break; in getConstantValue()
807 case Instruction::Mul: GV.IntVal = LHS.IntVal * RHS.IntVal; break; in getConstantValue()
808 case Instruction::UDiv:GV.IntVal = LHS.IntVal.udiv(RHS.IntVal); break; in getConstantValue()
809 case Instruction::SDiv:GV.IntVal = LHS.IntVal.sdiv(RHS.IntVal); break; in getConstantValue()
810 case Instruction::URem:GV.IntVal = LHS.IntVal.urem(RHS.IntVal); break; in getConstantValue()
811 case Instruction::SRem:GV.IntVal = LHS.IntVal.srem(RHS.IntVal); break; in getConstantValue()
812 case Instruction::And: GV.IntVal = LHS.IntVal & RHS.IntVal; break; in getConstantValue()
813 case Instruction::Or: GV.IntVal = LHS.IntVal | RHS.IntVal; break; in getConstantValue()
814 case Instruction::Xor: GV.IntVal = LHS.IntVal ^ RHS.IntVal; break; in getConstantValue()
851 APFloat apfLHS = APFloat(Sem, LHS.IntVal); in getConstantValue()
855 apfLHS.add(APFloat(Sem, RHS.IntVal), APFloat::rmNearestTiesToEven); in getConstantValue()
856 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
859 apfLHS.subtract(APFloat(Sem, RHS.IntVal), in getConstantValue()
861 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
864 apfLHS.multiply(APFloat(Sem, RHS.IntVal), in getConstantValue()
866 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
869 apfLHS.divide(APFloat(Sem, RHS.IntVal), in getConstantValue()
871 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
874 apfLHS.mod(APFloat(Sem, RHS.IntVal)); in getConstantValue()
875 GV.IntVal = apfLHS.bitcastToAPInt(); in getConstantValue()
911 Result.IntVal = cast <ConstantFP>(C)->getValueAPF().bitcastToAPInt(); in getConstantValue()
914 Result.IntVal = cast<ConstantInt>(C)->getValue(); in getConstantValue()
999 intZero.IntVal = APInt(ElemTy->getScalarSizeInBits(), 0ull); in getConstantValue()
1007 Result.AggregateVal[i].IntVal = cast<ConstantInt>( in getConstantValue()
1010 Result.AggregateVal[i].IntVal = in getConstantValue()
1017 Result.AggregateVal[i].IntVal = APInt( in getConstantValue()
1050 StoreIntToMemory(Val.IntVal, (uint8_t*)Ptr, StoreBytes); in StoreValueToMemory()
1059 memcpy(Ptr, Val.IntVal.getRawData(), 10); in StoreValueToMemory()
1076 unsigned numOfBytes =(Val.AggregateVal[i].IntVal.getBitWidth()+7)/8; in StoreValueToMemory()
1077 StoreIntToMemory(Val.AggregateVal[i].IntVal, in StoreValueToMemory()
1102 Result.IntVal = APInt(cast<IntegerType>(Ty)->getBitWidth(), 0); in LoadValueFromMemory()
1103 LoadIntFromMemory(Result.IntVal, (uint8_t*)Ptr, LoadBytes); in LoadValueFromMemory()
1119 Result.IntVal = APInt(80, y); in LoadValueFromMemory()
1142 intZero.IntVal = APInt(elemBitWidth, 0); in LoadValueFromMemory()
1145 LoadIntFromMemory(Result.AggregateVal[i].IntVal, in LoadValueFromMemory()