Lines Matching refs:VAL
79 /// integer bit-width <= 64, it uses VAL, otherwise it uses pVal.
81 uint64_t VAL; ///< Used to store the <= 64 bits integer value.
98 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {}
148 VAL &= mask;
157 return isSingleWord() ? VAL : pVal[whichWord(bitPosition)];
184 void initSlowCase(unsigned numBits, uint64_t val, bool isSigned);
211 bool EqualSlowCase(uint64_t Val) const;
226 /// \brief Create a new APInt of numBits width, initialized as val.
228 /// If isSigned is true then val is treated as if it were a signed value
231 /// the range of val are zero filled).
234 /// \param val the initial value of the APInt
235 /// \param isSigned how to treat signedness of val
236 APInt(unsigned numBits, uint64_t val, bool isSigned = false)
237 : BitWidth(numBits), VAL(0) {
240 VAL = val;
242 initSlowCase(numBits, val, isSigned);
279 APInt(const APInt &that) : BitWidth(that.BitWidth), VAL(0) {
282 VAL = that.VAL;
288 APInt(APInt &&that) : BitWidth(that.BitWidth), VAL(that.VAL) {
340 return VAL == ~integerPart(0) >> (APINT_BITS_PER_WORD - BitWidth);
355 return BitWidth == 1 ? VAL == 0
370 return BitWidth == 1 ? VAL == 1 : isNegative() && isPowerOf2();
390 return isPowerOf2_64(VAL);
543 APInt Val = V.zextOrSelf(NewLen);
545 Val |= Val << I;
547 return Val;
570 return &VAL;
631 return !VAL;
649 VAL = RHS.VAL;
663 VAL = that.VAL;
702 VAL |= RHS;
761 return APInt(getBitWidth(), VAL & RHS.VAL);
776 return APInt(getBitWidth(), VAL | RHS.VAL);
798 return APInt(BitWidth, VAL ^ RHS.VAL);
857 return APInt(BitWidth, VAL << shiftAmt);
947 (isSingleWord() ? VAL : pVal[whichWord(bitPosition)])) !=
962 return VAL == RHS.VAL;
971 /// \returns true if *this == Val
972 bool operator==(uint64_t Val) const {
974 return VAL == Val;
975 return EqualSlowCase(Val);
983 /// \returns true if *this == Val
991 /// \returns true if *this != Val
999 /// \returns true if *this != Val
1000 bool operator!=(uint64_t Val) const { return !((*this) == Val); }
1007 /// \returns true if *this != Val
1198 VAL = UINT64_MAX;
1216 VAL = 0;
1229 VAL ^= UINT64_MAX;
1304 return VAL;
1316 return int64_t(VAL << (APINT_BITS_PER_WORD - BitWidth)) >>
1339 return llvm::countLeadingZeros(VAL) - unusedBits;
1380 return CountTrailingOnes_64(VAL);
1392 return CountPopulation_64(VAL);
1447 T.I = (isSingleWord() ? VAL : pVal[0]);
1461 T.I = unsigned((isSingleWord() ? VAL : pVal[0]));
1513 // Special case when we have a bitwidth of 1. If VAL is 1, then we
1514 // get 0. If VAL is 0, we get UINT64_MAX which gets truncated to
1517 return VAL - 1;