Home
last modified time | relevance | path

Searched refs:WordType (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h80 typedef uint64_t WordType; typedef
83 static constexpr unsigned APINT_WORD_SIZE = sizeof(WordType);
94 static constexpr WordType WORDTYPE_MAX = ~WordType(0);
408 return U.VAL == ((WordType(1) << (BitWidth - 1)) - 1); in isMaxSignedValue()
426 return U.VAL == (WordType(1) << (BitWidth - 1)); in isMinSignedValue()
1332 WordType Mask = maskBit(BitPosition); in setBit()
1408 WordType Mask = ~maskBit(BitPosition); in clearBit()
1816 LLVM_ABI static void tcSet(WordType *, WordType, unsigned);
1819 LLVM_ABI static void tcAssign(WordType *, const WordType *, unsigned);
1822 LLVM_ABI static bool tcIsZero(const WordType *, unsigned);
[all …]
H A DAPFloat.h145 typedef APInt::WordType integerPart;
/freebsd/contrib/llvm-project/libc/src/__support/
H A Dbig_int.h332 template <size_t Bits, bool Signed, typename WordType = uint64_t>
335 static_assert(cpp::is_integral_v<WordType> && cpp::is_unsigned_v<WordType>,
344 using word_type = WordType;
351 static constexpr size_t WORD_SIZE = sizeof(WordType) * CHAR_BIT;
358 cpp::array<WordType, WORD_COUNT> val{}; // zero initialized.
383 WordType cur_word = 0;
386 cur_word |= static_cast<WordType>(other[(i * WORD_SIZE_RATIO) + j])
393 WordType cur_word = 0;
397 cur_word |= static_cast<WordType>(other[i])
407 const WordType extension_bits =
[all …]
H A Dinteger_literals.h123 using WordType = typename WordArrayT::value_type;
128 constexpr size_t DIGITS = DigitBuffer<WordType, base>::MAX_DIGITS;
132 array[i] = accumulate<WordType>(base, digit_ptr, chunk);
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPInt.cpp248 WordType *dst = U.pVal, *rhs = RHS.U.pVal; in andAssignSlowCase()
254 WordType *dst = U.pVal, *rhs = RHS.U.pVal; in orAssignSlowCase()
260 WordType *dst = U.pVal, *rhs = RHS.U.pVal; in xorAssignSlowCase()
367 static void tcComplement(APInt::WordType *dst, unsigned parts) { in tcComplement()
473 static_assert(8 * sizeof(WordType) <= 64, "This code assumes only two words affected"); in insertBits()
474 unsigned wordBits = 8 * sizeof(WordType); in insertBits()
1450 void APInt::divide(const WordType *LHS, unsigned lhsWords, const WordType *RHS, in divide()
1451 unsigned rhsWords, WordType *Quotient, WordType *Remainder) { in divide()
2323 static inline APInt::WordType lowBitMask(unsigned bits) { in lowBitMask()
2325 return ~(APInt::WordType) 0 >> (APInt::APINT_BITS_PER_WORD - bits); in lowBitMask()
[all …]
H A DAPFloat.cpp1576 static void tcSetLeastSignificantBits(APInt::WordType *dst, unsigned parts, in tcSetLeastSignificantBits()
1580 dst[i++] = ~(APInt::WordType)0; in tcSetLeastSignificantBits()
1585 dst[i++] = ~(APInt::WordType)0 >> (APInt::APINT_BITS_PER_WORD - bits); in tcSetLeastSignificantBits()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLowerEmuTLS.cpp139 IntegerType *WordType = DL.getIntPtrType(C); in addEmuTlsVar() local
141 Type *ElementTypes[4] = {WordType, WordType, VoidPtrType, InitPtrType}; in addEmuTlsVar()
167 ConstantInt::get(WordType, DL.getTypeStoreSize(GVType)), in addEmuTlsVar()
168 ConstantInt::get(WordType, GVAlignment.value()), NullPtr, in addEmuTlsVar()
172 std::max(DL.getABITypeAlign(WordType), DL.getABITypeAlign(VoidPtrType)); in addEmuTlsVar()
H A DAtomicExpandPass.cpp756 Type *WordType = nullptr; member
778 PrintObj(PMV.WordType); in operator <<()
828 PMV.WordType = MinWordSize > ValueSize ? Type::getIntNTy(Ctx, MinWordSize * 8) in createMaskInstrs()
830 if (PMV.ValueType == PMV.WordType) { in createMaskInstrs()
869 PMV.ShiftAmt = Builder.CreateTrunc(PMV.ShiftAmt, PMV.WordType, "ShiftAmt"); in createMaskInstrs()
871 ConstantInt::get(PMV.WordType, (1 << (ValueSize * 8)) - 1), PMV.ShiftAmt, in createMaskInstrs()
881 assert(WideWord->getType() == PMV.WordType && "Widened type mismatch"); in extractMaskedValue()
882 if (PMV.WordType == PMV.ValueType) in extractMaskedValue()
892 assert(WideWord->getType() == PMV.WordType && "Widened type mismatch"); in insertMaskedValue()
894 if (PMV.WordType == PMV.ValueType) in insertMaskedValue()
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/
H A DCodeGenDAGPatterns.h57 using WordType = uint64_t; member
58 static unsigned constexpr WordWidth = CHAR_BIT * sizeof(WordType);
69 for (WordType W : Words) in size()
74 void clear() { std::memset(Words.data(), 0, NumWords * sizeof(WordType)); } in clear()
77 for (WordType W : Words) in empty()
90 Words[T.SimpleTy / WordWidth] |= WordType(1) << (T.SimpleTy % WordWidth); in insert()
101 Words[T.SimpleTy / WordWidth] &= ~(WordType(1) << (T.SimpleTy % WordWidth)); in erase()
147 WordType W = Set->Words[SkipWords]; in find_from_pos()
148 W &= maskLeadingOnes<WordType>(WordWidth - SkipBits); in find_from_pos()
156 WordType W = Set->Words[i]; in find_from_pos()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.cpp7791 Type *WordType = Type::getIntNTy(Ctx, MinWordSize * 8); in emitExpandAtomicRMW() local
7805 ShiftAmt = Builder.CreateTrunc(ShiftAmt, WordType, "ShiftAmt"); in emitExpandAtomicRMW()
7807 ConstantInt::get(WordType, in emitExpandAtomicRMW()
7812 Builder.CreateShl(Builder.CreateZExt(AI->getValOperand(), WordType), in emitExpandAtomicRMW()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DExpr.h1081 static_assert(std::is_same<uint64_t, llvm::APInt::WordType>::value,