/openbsd/gnu/llvm/llvm/lib/Support/ |
H A D | ScaledNumber.cpp | 52 Shift && (Lower & UINT64_C(1) << (Shift - 1))); in multiply64() 64 int Shift = 0; in divide32() local 66 Shift -= Zeros; in divide32() 86 int Shift = 0; in divide64() local 88 Shift -= Zeros; in divide64() 98 Shift -= Zeros; in divide64() 111 --Shift; in divide64() 172 assert(Shift >= 0 && Shift < 64 && "undefined behavior"); in toStringAPFloat() 173 D <<= Shift; in toStringAPFloat() 215 D <<= Shift; in toString() [all …]
|
H A D | KnownBits.cpp | 173 unsigned Shift = RHS.getConstant().getZExtValue(); in shl() local 175 Known.Zero <<= Shift; in shl() 176 Known.One <<= Shift; in shl() 178 Known.Zero.setLowBits(Shift); in shl() 226 unsigned Shift = RHS.getConstant().getZExtValue(); in lshr() local 228 Known.Zero.lshrInPlace(Shift); in lshr() 229 Known.One.lshrInPlace(Shift); in lshr() 231 Known.Zero.setHighBits(Shift); in lshr() 279 unsigned Shift = RHS.getConstant().getZExtValue(); in ashr() local 281 Known.Zero.ashrInPlace(Shift); in ashr() [all …]
|
/openbsd/gnu/llvm/llvm/include/llvm/Support/ |
H A D | LEB128.h | 133 unsigned Shift = 0; variable 145 if ((Shift >= 64 && Slice != 0) || Slice << Shift >> Shift != Slice) { 152 Value += Slice << Shift; 153 Shift += 7; 166 unsigned Shift = 0; variable 180 if ((Shift >= 64 && Slice != (Value < 0 ? 0x7f : 0x00)) || 181 (Shift == 63 && Slice != 0 && Slice != 0x7f)) { 188 Value |= Slice << Shift; 189 Shift += 7; 193 if (Shift < 64 && (Byte & 0x40)) [all …]
|
H A D | ScaledNumber.h | 89 return getRounded<DigitsT>(Digits >> Shift, Scale + Shift, 624 shiftLeft(Shift); 628 shiftRight(Shift); 837 if (Shift < 0) { in shiftLeft() 838 shiftRight(-Shift); in shiftLeft() 853 Shift -= ScaleShift; in shiftLeft() 860 Digits <<= Shift; in shiftLeft() 867 if (Shift < 0) { in shiftRight() 868 shiftLeft(-Shift); in shiftRight() 879 Shift -= ScaleShift; in shiftRight() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/ |
H A D | AArch64ExpandImm.cpp | 273 Shift = (TZ / 16) * 16; in expandMOVImmSimple() 276 unsigned Imm16 = (Imm >> Shift) & Mask; in expandMOVImmSimple() 281 if (Shift == LastShift) in expandMOVImmSimple() 290 while (Shift < LastShift) { in expandMOVImmSimple() 291 Shift += 16; in expandMOVImmSimple() 292 Imm16 = (Imm >> Shift) & Mask; in expandMOVImmSimple() 311 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm() local 312 const unsigned Chunk = (Imm >> Shift) & Mask; in expandMOVImm() 354 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm() local 355 uint64_t ShiftedMask = (0xFFFFULL << Shift); in expandMOVImm() [all …]
|
/openbsd/gnu/llvm/llvm/include/llvm/ADT/ |
H A D | bit.h | 124 T Shift = std::numeric_limits<T>::digits >> 1; in count() local 125 T Mask = std::numeric_limits<T>::max() >> Shift; in count() 126 while (Shift) { in count() 128 Val >>= Shift; in count() 129 ZeroBits |= Shift; in count() 131 Shift >>= 1; in count() 132 Mask >>= Shift; in count() 193 for (T Shift = std::numeric_limits<T>::digits >> 1; Shift; Shift >>= 1) { 194 T Tmp = Val >> Shift; 198 ZeroBits |= Shift;
|
H A D | PointerEmbeddedInt.h | 44 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits, enumerator 66 Value = static_cast<uintptr_t>(I) << Shift; 74 return static_cast<IntT>(static_cast<intptr_t>(Value) >> Shift); 75 return static_cast<IntT>(Value >> Shift); 97 static constexpr int NumLowBitsAvailable = T::Shift;
|
H A D | Bitfields.h | 166 static constexpr StorageType Mask = BP::Umax << Bitfield::Shift; 173 Packed |= StorageValue << Bitfield::Shift; 179 const StorageType StorageValue = (Packed & Mask) >> Bitfield::Shift; 227 static constexpr unsigned Shift = Offset; 230 static constexpr unsigned LastBit = Shift + Bits - 1; 231 static constexpr unsigned NextBit = Shift + Bits;
|
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/Utils/ |
H A D | AMDKernelCodeTInfo.h | 38 #define PRINTCOMP(GetMacro, Shift) \ argument 41 (int)GetMacro(C.compute_pgm_resource_registers >> Shift); \ 43 #define PARSECOMP(SetMacro, Shift) \ argument 48 C.compute_pgm_resource_registers &= ~(SetMacro(0xFFFFFFFFFFFFFFFFULL) << Shift); \ 49 C.compute_pgm_resource_registers |= SetMacro(Value) << Shift; \ 53 #define COMPPGM(name, aname, GetMacro, SetMacro, Shift) \ argument 54 RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))
|
H A D | AMDGPUAsmUtils.h | 38 unsigned Shift; member 43 unsigned decode(unsigned Code) const { return (Code >> Shift) & Mask; } in decode() 45 unsigned encode(unsigned Val) const { return (Val & Mask) << Shift; } in encode() 47 unsigned getMask() const { return Mask << Shift; } in getMask()
|
/openbsd/gnu/llvm/compiler-rt/lib/gwp_asan/ |
H A D | stack_trace_compressor.cpp | 37 uint8_t Shift = 0; in varIntDecode() local 40 *Out |= (static_cast<uintptr_t>(In[i]) & 0x7f) << Shift; in varIntDecode() 45 Shift += 7; in varIntDecode() 48 if (Shift >= sizeof(uintptr_t) * 8) in varIntDecode()
|
/openbsd/gnu/llvm/clang/lib/Format/ |
H A D | WhitespaceManager.cpp | 279 int Shift = 0; in AlignTokenSequence() local 329 Shift = 0; in AlignTokenSequence() 340 Changes[i].Spaces += Shift; in AlignTokenSequence() 431 Changes[i].Spaces += Shift; in AlignTokenSequence() 435 Changes[i].Spaces += Shift; in AlignTokenSequence() 692 int Shift = 0; in AlignMacroSequence() local 696 Shift = 0; in AlignMacroSequence() 709 assert(Shift >= 0); in AlignMacroSequence() 1046 int Shift = 0; in alignTrailingComments() local 1054 if (Shift <= 0) in alignTrailingComments() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/MCTargetDesc/ |
H A D | AArch64AddressingModes.h | 811 for (int Shift = 0; Shift <= RegWidth - 16; Shift += 16) in isAnyMOVZMovAlias() local 812 if ((Value & ~(0xffffULL << Shift)) == 0) in isAnyMOVZMovAlias() 818 inline static bool isMOVZMovAlias(uint64_t Value, int Shift, int RegWidth) { in isMOVZMovAlias() argument 823 if (Value == 0 && Shift != 0) in isMOVZMovAlias() 826 return (Value & ~(0xffffULL << Shift)) == 0; in isMOVZMovAlias() 829 inline static bool isMOVNMovAlias(uint64_t Value, int Shift, int RegWidth) { in isMOVNMovAlias() argument 838 return isMOVZMovAlias(Value, Shift, RegWidth); in isMOVNMovAlias()
|
H A D | AArch64InstPrinter.cpp | 294 int Shift = MI->getOperand(2).getImm(); in printInst() local 295 uint64_t Value = (uint64_t)MI->getOperand(1).getImm() << Shift; in printInst() 297 if (AArch64_AM::isMOVZMovAlias(Value, Shift, in printInst() 310 int Shift = MI->getOperand(2).getImm(); in printInst() local 315 if (AArch64_AM::isMOVNMovAlias(Value, Shift, RegWidth)) { in printInst() 852 assert((Shift <= 1) && "Shift should be a single bit!"); in printRangePrefetchAlias() 1200 unsigned Shift = in printAddSubImm() local 1203 if (Shift != 0) { in printAddSubImm() 1206 *CommentStream << '=' << formatImm(Val << Shift) << '\n'; in printAddSubImm() 2014 unsigned Shift = MI->getOperand(OpNum + 1).getImm(); in printImm8OptLsl() local [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/Mips/ |
H A D | MicroMipsSizeReduction.cpp | 52 ImmField() : ImmFieldOperand(-1), Shift(0), LBound(0), HBound(0) {} in ImmField() 53 ImmField(uint8_t Shift, int16_t LBound, int16_t HBound, in ImmField() 55 : ImmFieldOperand(ImmFieldOperand), Shift(Shift), LBound(LBound), in ImmField() 58 uint8_t Shift; // Shift value member 105 uint8_t Shift() const { return Imm.Shift; } in Shift() function 327 static bool InRange(int64_t Value, unsigned short Shift, int LBound, in InRange() argument 329 int64_t Value2 = Value >> Shift; in InRange() 330 if (((Value & (int64_t)maskTrailingZeros<uint64_t>(Shift)) == Value) && in InRange() 344 if (!InRange(offset, Entry.Shift(), Entry.LBound(), Entry.HBound())) in ImmInRange()
|
/openbsd/gnu/usr.bin/perl/cpan/Pod-Simple/t/corpus/ |
H A D | s2763_sjis.txt | 6 �^��S2763 -- test document in Shift-JIS 10 This is a test Pod document in Shift-JIS. Its content is
|
/openbsd/gnu/llvm/llvm/lib/Analysis/ |
H A D | BlockFrequencyInfoImpl.cpp | 227 static uint64_t shiftRightAndRound(uint64_t N, int Shift) { in shiftRightAndRound() argument 228 assert(Shift >= 0); in shiftRightAndRound() 229 assert(Shift < 64); in shiftRightAndRound() 230 if (!Shift) in shiftRightAndRound() 232 return (N >> Shift) + (UINT64_C(1) & N >> (Shift - 1)); in shiftRightAndRound() 255 int Shift = 0; in normalize() local 257 Shift = 33; in normalize() 259 Shift = 33 - countLeadingZeros(Total); in normalize() 262 if (!Shift) { in normalize() 282 W.Amount = std::max(UINT64_C(1), shiftRightAndRound(W.Amount, Shift)); in normalize()
|
/openbsd/gnu/llvm/clang/lib/Basic/ |
H A D | OperatorPrecedence.cpp | 37 return prec::Shift; in getBinOpPrecedence() 66 case tok::lessless: return prec::Shift; in getBinOpPrecedence()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombinePHI.cpp | 1035 unsigned Shift; // The amount shifted. member 1039 : PHIId(Pn), Shift(Sh), Inst(User) {} in PHIUsageRecord() 1044 if (Shift < RHS.Shift) return true; in operator <() 1045 if (Shift > RHS.Shift) return false; in operator <() 1053 unsigned Shift; // The amount shifted. member 1057 : PN(Phi), Shift(Sh), Width(Ty->getPrimitiveSizeInBits()) {} in LoweredPHIRecord() 1060 LoweredPHIRecord(PHINode *Phi, unsigned Sh) : PN(Phi), Shift(Sh), Width(0) {} in LoweredPHIRecord() 1074 return DenseMapInfo<PHINode*>::getHashValue(Val.PN) ^ (Val.Shift>>3) ^ in getHashValue() 1079 return LHS.PN == RHS.PN && LHS.Shift == RHS.Shift && in isEqual() 1166 PHIUsers.push_back(PHIUsageRecord(PHIId, Shift, UserI->user_back())); in SliceUpIllegalIntegerPHI() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/PowerPC/GISel/ |
H A D | PPCInstructionSelector.cpp | 289 uint32_t Shift = 0; in selectI64ImmDirect() local 436 if ((Shift = findContiguousZerosAtLeast(Imm, 49)) || in selectI64ImmDirect() 437 (Shift = findContiguousZerosAtLeast(~Imm, 49))) { in selectI64ImmDirect() 438 uint64_t RotImm = APInt(64, Imm).rotr(Shift).getZExtValue(); in selectI64ImmDirect() 446 .addImm(Shift) in selectI64ImmDirect() 561 if ((Shift = findContiguousZerosAtLeast(Imm, 33)) || in selectI64ImmDirect() 562 (Shift = findContiguousZerosAtLeast(~Imm, 33))) { in selectI64ImmDirect() 563 uint64_t RotImm = APInt(64, Imm).rotr(Shift).getZExtValue(); in selectI64ImmDirect() 579 .addImm(Shift) in selectI64ImmDirect()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | AggressiveInstCombine.cpp | 450 uint64_t Shift, uint64_t InputBits) { in isCTTZTable() argument 455 APInt Mask = APInt::getBitsSetFrom(InputBits, Shift); in isCTTZTable() 467 if ((((Mul << Element) & Mask.getZExtValue()) >> Shift) == i) in isCTTZTable() 616 Value *Shift = nullptr; member 645 Value *ShAmt1 = LOps.Shift; in foldLoadsRecursive() 762 LOps.Shift = ShAmt1; in foldLoadsRecursive() 820 if (LOps.Shift) in foldConsecutiveLoads() 821 NewOp = Builder.CreateShl(NewOp, LOps.Shift); in foldConsecutiveLoads()
|
/openbsd/gnu/llvm/clang/include/clang/Basic/ |
H A D | LangOptions.h | 670 static constexpr storage_type NAME##Shift = \ 671 PREVIOUS##Shift + PREVIOUS##Width; \ 674 << NAME##Shift; 784 return static_cast<TYPE>((Value & NAME##Mask) >> NAME##Shift); \ 787 Value = (Value & ~NAME##Mask) | (storage_type(value) << NAME##Shift); \
|
H A D | OperatorPrecedence.h | 39 Shift = 12, // <<, >> enumerator
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/ |
H A D | IntegerDivision.cpp | 35 ConstantInt *Shift = Builder.getIntN(BitWidth, BitWidth - 1); in generateSignedRemainderCode() local 51 Value *DividendSign = Builder.CreateAShr(Dividend, Shift); in generateSignedRemainderCode() 52 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift); in generateSignedRemainderCode() 104 ConstantInt *Shift = Builder.getIntN(BitWidth, BitWidth - 1); in generateSignedDivisionCode() local 121 Value *Tmp = Builder.CreateAShr(Dividend, Shift); in generateSignedDivisionCode() 122 Value *Tmp1 = Builder.CreateAShr(Divisor, Shift); in generateSignedDivisionCode()
|
/openbsd/gnu/llvm/llvm/lib/Target/X86/ |
H A D | X86ISelDAGToDAG.cpp | 1918 !Shift.hasOneUse()) in foldMaskAndShiftToExtract() 1958 SDValue Shift = N.getOperand(0); in foldMaskedShiftToScaledMask() local 1969 if (Shift.getOpcode() == ISD::ANY_EXTEND && Shift.hasOneUse() && in foldMaskedShiftToScaledMask() 1973 Shift = Shift.getOperand(0); in foldMaskedShiftToScaledMask() 1980 SDValue X = Shift.getOperand(0); in foldMaskedShiftToScaledMask() 2052 if (Shift.getOpcode() != ISD::SRL || !Shift.hasOneUse() || in foldMaskAndShiftToScale() 4123 if (Shift.getOpcode() == ISD::ANY_EXTEND && Shift.hasOneUse() && in tryShrinkShlLogicImm() 4127 Shift = Shift.getOperand(0); in tryShrinkShlLogicImm() 4130 if (Shift.getOpcode() != ISD::SHL || !Shift.hasOneUse()) in tryShrinkShlLogicImm() 5710 Shift = in Select() [all …]
|