Home
last modified time | relevance | path

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

/external/llvm-project/llvm/include/llvm/ADT/
DAPInt.h72 typedef uint64_t WordType; typedef
77 APINT_WORD_SIZE = sizeof(WordType),
88 static constexpr WordType WORDTYPE_MAX = ~WordType(0);
192 static void divide(const WordType *LHS, unsigned lhsWords,
193 const WordType *RHS, unsigned rhsWords, WordType *Quotient,
194 WordType *Remainder);
434 return U.VAL == ((WordType(1) << (BitWidth - 1)) - 1);
450 return U.VAL == (WordType(1) << (BitWidth - 1));
1444 WordType Mask = maskBit(BitPosition);
1527 WordType Mask = ~maskBit(BitPosition);
[all …]
DAPFloat.h144 typedef APInt::WordType integerPart;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DAPInt.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 …]
DAPFloat.h143 typedef APInt::WordType integerPart;
/external/llvm-project/llvm/lib/Support/
DAPInt.cpp417 static_assert(8 * sizeof(WordType) <= 64, "This code assumes only two words affected"); in insertBits()
418 unsigned wordBits = 8 * sizeof(WordType); in insertBits()
480 static_assert(8 * sizeof(WordType) <= 64, "This code assumes only two words affected"); in extractBitsAsZExtValue()
481 unsigned wordBits = 8 * sizeof(WordType); in extractBitsAsZExtValue()
1477 void APInt::divide(const WordType *LHS, unsigned lhsWords, const WordType *RHS, in divide()
1478 unsigned rhsWords, WordType *Quotient, WordType *Remainder) { in divide()
2316 static inline APInt::WordType lowBitMask(unsigned bits) { in lowBitMask()
2319 return ~(APInt::WordType) 0 >> (APInt::APINT_BITS_PER_WORD - bits); in lowBitMask()
2323 static inline APInt::WordType lowHalf(APInt::WordType part) { in lowHalf()
2328 static inline APInt::WordType highHalf(APInt::WordType part) { in highHalf()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DAPInt.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 …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DLowerEmuTLS.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()
DAtomicExpandPass.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 …]
/external/llvm-project/llvm/lib/CodeGen/
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()
DAtomicExpandPass.cpp581 Type *WordType = nullptr; member
601 PrintObj(PMV.WordType); in operator <<()
645 PMV.WordType = MinWordSize > ValueSize ? Type::getIntNTy(Ctx, MinWordSize * 8) in createMaskInstrs()
647 if (PMV.ValueType == PMV.WordType) { in createMaskInstrs()
655 PMV.WordType->getPointerTo(Addr->getType()->getPointerAddressSpace()); in createMaskInstrs()
672 PMV.ShiftAmt = Builder.CreateTrunc(PMV.ShiftAmt, PMV.WordType, "ShiftAmt"); in createMaskInstrs()
674 ConstantInt::get(PMV.WordType, (1 << (ValueSize * 8)) - 1), PMV.ShiftAmt, in createMaskInstrs()
682 assert(WideWord->getType() == PMV.WordType && "Widened type mismatch"); in extractMaskedValue()
683 if (PMV.WordType == PMV.ValueType) in extractMaskedValue()
693 assert(WideWord->getType() == PMV.WordType && "Widened type mismatch"); in insertMaskedValue()
[all …]
/external/llvm/lib/CodeGen/
DLowerEmuTLS.cpp113 IntegerType *WordType = DL.getIntPtrType(C); in addEmuTlsVar() local
116 Type *ElementTypes[4] = {WordType, WordType, VoidPtrType, InitPtrType}; in addEmuTlsVar()
150 ConstantInt::get(WordType, DL.getTypeStoreSize(GVType)), in addEmuTlsVar()
151 ConstantInt::get(WordType, GVAlignment), in addEmuTlsVar()
158 DL.getABITypeAlignment(WordType), in addEmuTlsVar()
DAtomicExpandPass.cpp565 Type *WordType; member
608 Ret.WordType = Type::getIntNTy(Ctx, WordSize * 8); in createMaskInstrs()
611 Ret.WordType->getPointerTo(Addr->getType()->getPointerAddressSpace()); in createMaskInstrs()
628 Ret.ShiftAmt = Builder.CreateTrunc(Ret.ShiftAmt, Ret.WordType, "ShiftAmt"); in createMaskInstrs()
630 ConstantInt::get(Ret.WordType, (1 << ValueSize * 8) - 1), Ret.ShiftAmt, in createMaskInstrs()
677 Builder.CreateZExt(NewVal, PMV.WordType), PMV.ShiftAmt); in performMaskedAtomicOp()
708 Builder.CreateShl(Builder.CreateZExt(AI->getValOperand(), PMV.WordType), in expandPartwordAtomicRMW()
719 insertRMWCmpXchgLoop(Builder, PMV.WordType, PMV.AlignedAddr, MemOpOrder, in expandPartwordAtomicRMW()
790 Builder.CreateShl(Builder.CreateZExt(NewVal, PMV.WordType), PMV.ShiftAmt); in expandPartwordCmpXchg()
792 Builder.CreateShl(Builder.CreateZExt(Cmp, PMV.WordType), PMV.ShiftAmt); in expandPartwordCmpXchg()
[all …]
/external/llvm-project/llvm/unittests/ADT/
DAPIntTest.cpp568 APInt::WordType E2[4] = { in TEST()
1562 APInt::WordType singleWord = ~APInt::WordType(0) << (APInt::APINT_BITS_PER_WORD - 1); in TEST()
1563 APInt::WordType carry = APInt::tcDecrement(&singleWord, 1); in TEST()
1564 EXPECT_EQ(carry, APInt::WordType(0)); in TEST()
1565 EXPECT_EQ(singleWord, ~APInt::WordType(0) >> 1); in TEST()
1570 APInt::WordType singleWord = 0; in TEST()
1571 APInt::WordType carry = APInt::tcDecrement(&singleWord, 1); in TEST()
1572 EXPECT_EQ(carry, APInt::WordType(1)); in TEST()
1573 EXPECT_EQ(singleWord, ~APInt::WordType(0)); in TEST()
1580 APInt::WordType test[4] = {0x1, 0x1, 0x1, 0x1}; in TEST()
[all …]
/external/llvm-project/llvm/utils/TableGen/
DCodeGenDAGPatterns.h58 using WordType = uint64_t; member
59 static unsigned constexpr WordWidth = CHAR_BIT*sizeof(WordType);
72 for (WordType W : Words) in size()
78 std::memset(Words.data(), 0, NumWords*sizeof(WordType)); in clear()
82 for (WordType W : Words) in empty()
93 Words[T.SimpleTy / WordWidth] |= WordType(1) << (T.SimpleTy % WordWidth); in insert()
103 Words[T.SimpleTy / WordWidth] &= ~(WordType(1) << (T.SimpleTy % WordWidth)); in erase()
149 WordType W = Set->Words[SkipWords]; in find_from_pos()
150 W &= maskLeadingOnes<WordType>(WordWidth-SkipBits); in find_from_pos()
158 WordType W = Set->Words[i]; in find_from_pos()
[all …]
/external/swiftshader/third_party/subzero/src/
DIceTargetLoweringX8664.cpp235 getPhysicalRegister(Traits::RegisterSet::Reg_rsp, Traits::WordType); in _link_bp()
239 getPhysicalRegister(Traits::RegisterSet::Reg_rbp, Traits::WordType); in _link_bp()
241 getPhysicalRegister(Traits::RegisterSet::Reg_r15, Traits::WordType); in _link_bp()
298 getPhysicalRegister(Traits::RegisterSet::Reg_rsp, Traits::WordType); in _push_reg()
306 _push(getPhysicalRegister(RegNum, Traits::WordType)); in _push_reg()
316 getPhysicalRegister(Traits::RegisterSet::Reg_rsp, Traits::WordType); in _pop_reg()
324 _pop(getPhysicalRegister(RegNum, Traits::WordType)); in _pop_reg()
524 getPhysicalRegister(Traits::RegisterSet::Reg_rsp, Traits::WordType); in _sub_sp()
DIceTargetLoweringX8632.cpp233 _push(getPhysicalRegister(RegNum, Traits::WordType)); in _push_reg()
237 _pop(getPhysicalRegister(RegNum, Traits::WordType)); in _pop_reg()
DIceTargetLoweringX86Base.h164 const uint32_t WordSizeInBytes = typeWidthInBytes(Traits::WordType); in typeWidthInBytesOnStack()
399 Func->getTarget()->getPhysicalRegister(getStackReg(), Traits::WordType); in keepEspLiveAtExit()
1086 size_t RequiredStackAlignment = sizeof(Traits::WordType);
DIceTargetLoweringX86BaseImpl.h98 Traits::Is64Bit ? 4 * typeWidthInBytes(Traits::WordType) : 0;
975 const Type FrameSPTy = Traits::WordType;
1115 PreservedRegsSizeBytes += typeWidthInBytes(Traits::WordType);
1128 PreservedRegsSizeBytes += typeWidthInBytes(Traits::WordType);
1209 _and(getPhysicalRegister(getStackReg(), Traits::WordType),
1226 Variable *FramePtr = getPhysicalRegister(FrameOrStackReg, Traits::WordType);
1255 if (Traits::getRegisterForGprArgNum(Traits::WordType,
1427 return Traits::WordType;
1534 Variable *esp = getPhysicalRegister(getStackReg(), Traits::WordType);
1734 Variable *T = makeReg(Traits::WordType);
[all …]
DIceTargetLoweringX8632Traits.h276 static constexpr Type WordType = IceType_i32; member
DIceTargetLoweringX8664Traits.h301 static constexpr Type WordType = IceType_i64; member
DIceAssemblerARM32.cpp32 using WordType = uint32_t; typedef
33 static constexpr IValueT kWordSize = sizeof(WordType);
/external/llvm-project/clang/include/clang/AST/
DExpr.h1025 static_assert(std::is_same<uint64_t, llvm::APInt::WordType>::value,
/external/libabigail/tests/data/test-read-dwarf/
DPR22122-libftdc.so.abi706 …<typedef-decl name='WordType' type-id='type-id-23' filepath='src/mongo/platform/atomic_word.h' lin…
Dtest11-pr18828.so.abi13181 …<typedef-decl name='WordType' type-id='type-id-22' filepath='src/mongo/platform/atomic_word.h' lin…
Dtest12-pr18844.so.abi18181 …<typedef-decl name='WordType' type-id='type-id-30' filepath='src/mongo/platform/atomic_word.h' lin…