Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DAPInt.h77 typedef uint64_t WordType; typedef
82 APINT_WORD_SIZE = sizeof(WordType),
93 static constexpr WordType WORDTYPE_MAX = ~WordType(0);
400 return U.VAL == ((WordType(1) << (BitWidth - 1)) - 1); in isMaxSignedValue()
418 return U.VAL == (WordType(1) << (BitWidth - 1)); in isMinSignedValue()
1310 WordType Mask = maskBit(BitPosition); in setBit()
1387 WordType Mask = ~maskBit(BitPosition); in clearBit()
1755 static void tcSet(WordType *, WordType, unsigned);
1758 static void tcAssign(WordType *, const WordType *, unsigned);
1761 static bool tcIsZero(const WordType *, unsigned);
[all …]
H A DAPFloat.h143 typedef APInt::WordType integerPart;
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DAPInt.cpp237 WordType *dst = U.pVal, *rhs = RHS.U.pVal; in andAssignSlowCase()
243 WordType *dst = U.pVal, *rhs = RHS.U.pVal; in orAssignSlowCase()
249 WordType *dst = U.pVal, *rhs = RHS.U.pVal; in xorAssignSlowCase()
329 static void tcComplement(APInt::WordType *dst, unsigned parts) { in tcComplement()
435 static_assert(8 * sizeof(WordType) <= 64, "This code assumes only two words affected"); in insertBits()
436 unsigned wordBits = 8 * sizeof(WordType); in insertBits()
497 static_assert(8 * sizeof(WordType) <= 64, "This code assumes only two words affected"); in extractBitsAsZExtValue()
498 unsigned wordBits = 8 * sizeof(WordType); in extractBitsAsZExtValue()
1448 void APInt::divide(const WordType *LHS, unsigned lhsWords, const WordType *RHS, in divide()
1449 unsigned rhsWords, WordType *Quotient, WordType *Remainder) { in divide()
[all …]
H A DAPFloat.cpp1386 static void tcSetLeastSignificantBits(APInt::WordType *dst, unsigned parts, in tcSetLeastSignificantBits()
1390 dst[i++] = ~(APInt::WordType)0; in tcSetLeastSignificantBits()
1395 dst[i++] = ~(APInt::WordType)0 >> (APInt::APINT_BITS_PER_WORD - bits); in tcSetLeastSignificantBits()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DLowerEmuTLS.cpp116 IntegerType *WordType = DL.getIntPtrType(C); in addEmuTlsVar() local
119 Type *ElementTypes[4] = {WordType, WordType, VoidPtrType, InitPtrType}; in addEmuTlsVar()
148 ConstantInt::get(WordType, DL.getTypeStoreSize(GVType)), in addEmuTlsVar()
149 ConstantInt::get(WordType, GVAlignment.value()), NullPtr, in addEmuTlsVar()
155 std::max(DL.getABITypeAlign(WordType), DL.getABITypeAlign(VoidPtrType)); in addEmuTlsVar()
H A DAtomicExpandPass.cpp643 Type *WordType = nullptr; member
665 PrintObj(PMV.WordType); in operator <<()
715 PMV.WordType = MinWordSize > ValueSize ? Type::getIntNTy(Ctx, MinWordSize * 8) in createMaskInstrs()
717 if (PMV.ValueType == PMV.WordType) { in createMaskInstrs()
730 Type *WordPtrType = PMV.WordType->getPointerTo(PtrTy->getAddressSpace()); in createMaskInstrs()
757 PMV.ShiftAmt = Builder.CreateTrunc(PMV.ShiftAmt, PMV.WordType, "ShiftAmt"); in createMaskInstrs()
759 ConstantInt::get(PMV.WordType, (1 << (ValueSize * 8)) - 1), PMV.ShiftAmt, in createMaskInstrs()
773 assert(WideWord->getType() == PMV.WordType && "Widened type mismatch"); in extractMaskedValue()
774 if (PMV.WordType == PMV.ValueType) in extractMaskedValue()
784 assert(WideWord->getType() == PMV.WordType && "Widened type mismatch"); in insertMaskedValue()
[all …]
/openbsd-src/gnu/llvm/llvm/utils/TableGen/
H A DCodeGenDAGPatterns.h57 using WordType = uint64_t; member
58 static unsigned constexpr WordWidth = CHAR_BIT*sizeof(WordType);
71 for (WordType W : Words) in size()
77 std::memset(Words.data(), 0, NumWords*sizeof(WordType)); in clear()
81 for (WordType W : Words) in empty()
92 Words[T.SimpleTy / WordWidth] |= WordType(1) << (T.SimpleTy % WordWidth); in insert()
102 Words[T.SimpleTy / WordWidth] &= ~(WordType(1) << (T.SimpleTy % WordWidth)); in erase()
150 WordType W = Set->Words[SkipWords]; in find_from_pos()
151 W &= maskLeadingOnes<WordType>(WordWidth-SkipBits); in find_from_pos()
159 WordType W = Set->Words[i]; in find_from_pos()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DExpr.h1046 static_assert(std::is_same<uint64_t, llvm::APInt::WordType>::value,