| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | ScaledNumber.cpp | 48 int Shift = 64 - LeadingZeros; in multiply64() local 50 Upper = Upper << LeadingZeros | Lower >> Shift; in multiply64() 51 return getRounded(Upper, Shift, in multiply64() 52 Shift && (Lower & UINT64_C(1) << (Shift - 1))); in multiply64() 64 int Shift = 0; in divide32() local 66 Shift -= Zeros; in divide32() 74 return getAdjusted<uint32_t>(Quotient, Shift); in divide32() 77 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); in divide32() 86 int Shift = 0; in divide64() local 88 Shift -= Zeros; in divide64() [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-src/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 | 88 int Shift = 64 - Width - countLeadingZeros(Digits); variable 89 return getRounded<DigitsT>(Digits >> Shift, Scale + Shift, 90 Digits & (UINT64_C(1) << (Shift - 1))); 623 ScaledNumber &operator<<=(int16_t Shift) { 624 shiftLeft(Shift); 627 ScaledNumber &operator>>=(int16_t Shift) { 628 shiftRight(Shift); 633 void shiftLeft(int32_t Shift); 634 void shiftRight(int32_t Shift); 700 static ScaledNumber adjustToWidth(uint64_t N, int32_t Shift) { in adjustToWidth() argument [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/ |
| H A D | AArch64ExpandImm.cpp | 268 unsigned Shift = 0; // LSL amount for high bits with MOVZ/MOVN in expandMOVImmSimple() local 273 Shift = (TZ / 16) * 16; in expandMOVImmSimple() 276 unsigned Imm16 = (Imm >> Shift) & Mask; in expandMOVImmSimple() 279 AArch64_AM::getShifterImm(AArch64_AM::LSL, Shift) }); 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() 297 AArch64_AM::getShifterImm(AArch64_AM::LSL, Shift) }); in expandMOVImmSimple() 311 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm() local [all …]
|
| /openbsd-src/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-src/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-src/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-src/gnu/llvm/clang/lib/Format/ |
| H A D | WhitespaceManager.cpp | 279 int Shift = 0; in AlignTokenSequence() local 329 Shift = 0; in AlignTokenSequence() 338 Shift = Column - (RightJustify ? Changes[i].TokenLength : 0) - in AlignTokenSequence() 340 Changes[i].Spaces += Shift; in AlignTokenSequence() 431 Changes[i].Spaces += Shift; in AlignTokenSequence() 435 Changes[i].Spaces += Shift; in AlignTokenSequence() 438 assert(Shift >= 0 || Changes[i].NewlinesBefore > 0 || in AlignTokenSequence() 443 Changes[i].StartOfTokenColumn += Shift; in AlignTokenSequence() 445 Changes[i + 1].PreviousEndOfTokenColumn += Shift; in AlignTokenSequence() 454 Changes[Previous + 1].Spaces -= Shift; in AlignTokenSequence() [all …]
|
| /openbsd-src/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 311 uint64_t Value = ~((uint64_t)MI->getOperand(1).getImm() << Shift); in printInst() 315 if (AArch64_AM::isMOVNMovAlias(Value, Shift, RegWidth)) { in printInst() 849 unsigned Shift = MI->getOperand(4).getImm(); // encoded in "S". in printRangePrefetchAlias() local 852 assert((Shift <= 1) && "Shift should be a single bit!"); in printRangePrefetchAlias() 858 (SignExtend << 5) | (Option0 << 4) | (Shift << 3) | (PRFOp & 0x7); in printRangePrefetchAlias() 1200 unsigned Shift = in printAddSubImm() local [all …]
|
| /openbsd-src/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-src/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-src/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-src/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-src/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() 1165 unsigned Shift = cast<ConstantInt>(UserI->getOperand(1))->getZExtValue(); in SliceUpIllegalIntegerPHI() local [all …]
|
| /openbsd-src/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-src/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-src/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-src/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-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86ISelDAGToDAG.cpp | 1914 SDValue Shift, SDValue X, in foldMaskAndShiftToExtract() argument 1916 if (Shift.getOpcode() != ISD::SRL || in foldMaskAndShiftToExtract() 1917 !isa<ConstantSDNode>(Shift.getOperand(1)) || in foldMaskAndShiftToExtract() 1918 !Shift.hasOneUse()) in foldMaskAndShiftToExtract() 1921 int ScaleLog = 8 - Shift.getConstantOperandVal(1); in foldMaskAndShiftToExtract() 1958 SDValue Shift = N.getOperand(0); in foldMaskedShiftToScaledMask() local 1969 if (Shift.getOpcode() == ISD::ANY_EXTEND && Shift.hasOneUse() && in foldMaskedShiftToScaledMask() 1970 Shift.getOperand(0).getSimpleValueType() == MVT::i32 && in foldMaskedShiftToScaledMask() 1973 Shift = Shift.getOperand(0); in foldMaskedShiftToScaledMask() 1976 if (Shift.getOpcode() != ISD::SHL || in foldMaskedShiftToScaledMask() [all …]
|