Home
last modified time | relevance | path

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

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
HDAPInt.h71 typedef uint64_t WordType; typedef
76 APINT_WORD_SIZE = sizeof(WordType),
87 static const WordType WORDTYPE_MAX = ~WordType(0);
191 static void divide(const WordType *LHS, unsigned lhsWords,
192 const WordType *RHS, unsigned rhsWords, WordType *Quotient,
193 WordType *Remainder);
433 return U.VAL == ((WordType(1) << (BitWidth - 1)) - 1); in isMaxSignedValue()
449 return U.VAL == (WordType(1) << (BitWidth - 1)); in isMinSignedValue()
1438 WordType Mask = maskBit(BitPosition); in setBit()
1512 WordType Mask = ~maskBit(BitPosition); in clearBit()
[all …]
HDAPFloat.h143 typedef APInt::WordType integerPart;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
HDAPInt.cpp422 static_assert(8 * sizeof(WordType) <= 64, "This code assumes only two words affected"); in insertBits()
423 unsigned wordBits = 8 * sizeof(WordType); in insertBits()
485 static_assert(8 * sizeof(WordType) <= 64, "This code assumes only two words affected"); in extractBitsAsZExtValue()
486 unsigned wordBits = 8 * sizeof(WordType); in extractBitsAsZExtValue()
1478 void APInt::divide(const WordType *LHS, unsigned lhsWords, const WordType *RHS, in divide()
1479 unsigned rhsWords, WordType *Quotient, WordType *Remainder) { in divide()
2317 static inline APInt::WordType lowBitMask(unsigned bits) { in lowBitMask()
2320 return ~(APInt::WordType) 0 >> (APInt::APINT_BITS_PER_WORD - bits); in lowBitMask()
2324 static inline APInt::WordType lowHalf(APInt::WordType part) { in lowHalf()
2329 static inline APInt::WordType highHalf(APInt::WordType part) { in highHalf()
[all …]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
HDLowerEmuTLS.cpp115 IntegerType *WordType = DL.getIntPtrType(C); in addEmuTlsVar() local
118 Type *ElementTypes[4] = {WordType, WordType, VoidPtrType, InitPtrType}; in addEmuTlsVar()
152 ConstantInt::get(WordType, DL.getTypeStoreSize(GVType)), in addEmuTlsVar()
153 ConstantInt::get(WordType, GVAlignment), in addEmuTlsVar()
159 Align MaxAlignment(std::max(DL.getABITypeAlignment(WordType), in addEmuTlsVar()
HDAtomicExpandPass.cpp613 Type *WordType; member
656 Ret.WordType = Type::getIntNTy(Ctx, WordSize * 8); in createMaskInstrs()
659 Ret.WordType->getPointerTo(Addr->getType()->getPointerAddressSpace()); in createMaskInstrs()
676 Ret.ShiftAmt = Builder.CreateTrunc(Ret.ShiftAmt, Ret.WordType, "ShiftAmt"); in createMaskInstrs()
678 ConstantInt::get(Ret.WordType, (1 << (ValueSize * 8)) - 1), Ret.ShiftAmt, in createMaskInstrs()
726 Builder.CreateZExt(NewVal, PMV.WordType), PMV.ShiftAmt); in performMaskedAtomicOp()
756 Builder.CreateShl(Builder.CreateZExt(AI->getValOperand(), PMV.WordType), in expandPartwordAtomicRMW()
767 insertRMWCmpXchgLoop(Builder, PMV.WordType, PMV.AlignedAddr, MemOpOrder, in expandPartwordAtomicRMW()
789 Builder.CreateShl(Builder.CreateZExt(AI->getValOperand(), PMV.WordType), in widenPartwordAtomicRMW()
873 Builder.CreateShl(Builder.CreateZExt(NewVal, PMV.WordType), PMV.ShiftAmt); in expandPartwordCmpXchg()
[all …]
/freebsd-11-stable/contrib/llvm-project/llvm/utils/TableGen/
HDCodeGenDAGPatterns.h60 using WordType = uint64_t; member
61 static unsigned constexpr WordWidth = CHAR_BIT*sizeof(WordType);
74 for (WordType W : Words) in size()
80 std::memset(Words.data(), 0, NumWords*sizeof(WordType)); in clear()
84 for (WordType W : Words) in empty()
95 Words[T.SimpleTy / WordWidth] |= WordType(1) << (T.SimpleTy % WordWidth); in insert()
105 Words[T.SimpleTy / WordWidth] &= ~(WordType(1) << (T.SimpleTy % WordWidth)); in erase()
151 WordType W = Set->Words[SkipWords]; in find_from_pos()
152 W &= maskLeadingOnes<WordType>(WordWidth-SkipBits); in find_from_pos()
160 WordType W = Set->Words[i]; in find_from_pos()
[all …]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
HDExpr.h981 static_assert(std::is_same<uint64_t, llvm::APInt::WordType>::value,