| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/ |
| H A D | ScaledNumber.h | 52 inline std::pair<DigitsT, int16_t> getRounded(DigitsT Digits, int16_t Scale, in getRounded() argument 59 return std::make_pair(DigitsT(1) << (getWidth<DigitsT>() - 1), Scale + 1); in getRounded() 60 return std::make_pair(Digits, Scale); in getRounded() 64 inline std::pair<uint32_t, int16_t> getRounded32(uint32_t Digits, int16_t Scale, in getRounded32() argument 66 return getRounded(Digits, Scale, ShouldRound); in getRounded32() 70 inline std::pair<uint64_t, int16_t> getRounded64(uint64_t Digits, int16_t Scale, in getRounded64() argument 72 return getRounded(Digits, Scale, ShouldRound); in getRounded64() 80 int16_t Scale = 0) { 85 return std::make_pair(Digits, Scale); 89 return getRounded<DigitsT>(Digits >> Shift, Scale + Shift, [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86InstrBuilder.h | 53 unsigned Scale; member 60 : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(nullptr), in X86AddressMode() 66 assert(Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8); in getFullAddress() 76 MO.push_back(MachineOperand::CreateImm(Scale)); in getFullAddress() 105 AM.Scale = Op1.getImm(); in getAddressFromInstr() 174 assert(AM.Scale == 1 || AM.Scale == 2 || AM.Scale == 4 || AM.Scale == 8); in addFullAddress() 183 MIB.addImm(AM.Scale).addReg(AM.IndexReg); in addFullAddress()
|
| H A D | X86ISelDAGToDAG.cpp | 69 unsigned Scale = 1; member 119 dbgs() << " Scale " << Scale << '\n' in dump() 221 SDValue &Scale, SDValue &Index, SDValue &Disp, 224 SDValue ScaleOp, SDValue &Base, SDValue &Scale, 228 SDValue &Scale, SDValue &Index, SDValue &Disp, 231 SDValue &Scale, SDValue &Index, SDValue &Disp, 234 SDValue &Scale, SDValue &Index, SDValue &Disp, 239 SDValue &Base, SDValue &Scale, 245 SDValue &Base, SDValue &Scale, in tryFoldLoad() argument 248 return tryFoldLoad(P, P, N, Base, Scale, Index, Disp, Segment); in tryFoldLoad() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | BasicAliasAnalysis.cpp | 318 APInt Scale; member 324 LinearExpression(const CastedValue &Val, const APInt &Scale, in LinearExpression() 326 : Val(Val), Scale(Scale), Offset(Offset), IsNSW(IsNSW) {} in LinearExpression() 330 Scale = APInt(BitWidth, 1); in LinearExpression() 338 return LinearExpression(Val, Scale * Other, Offset * Other, NSW); in mul() 419 E.Scale <<= RHS.getLimitedValue(); in GetLinearExpression() 456 APInt Scale; member 473 << ", scale=" << Scale << ")"; in print() 642 APInt Scale = LE.Scale.sext(MaxIndexSize); in DecomposeGEPExpression() local 651 Scale += Decomposed.VarIndices[i].Scale; in DecomposeGEPExpression() [all …]
|
| H A D | VectorUtils.cpp | 469 void llvm::narrowShuffleMaskElts(int Scale, ArrayRef<int> Mask, in narrowShuffleMaskElts() argument 471 assert(Scale > 0 && "Unexpected scaling factor"); in narrowShuffleMaskElts() 474 if (Scale == 1) { in narrowShuffleMaskElts() 482 assert(((uint64_t)Scale * MaskElt + (Scale - 1)) <= INT32_MAX && in narrowShuffleMaskElts() 485 for (int SliceElt = 0; SliceElt != Scale; ++SliceElt) in narrowShuffleMaskElts() 486 ScaledMask.push_back(MaskElt < 0 ? MaskElt : Scale * MaskElt + SliceElt); in narrowShuffleMaskElts() 490 bool llvm::widenShuffleMaskElts(int Scale, ArrayRef<int> Mask, in widenShuffleMaskElts() argument 492 assert(Scale > 0 && "Unexpected scaling factor"); in widenShuffleMaskElts() 495 if (Scale == 1) { in widenShuffleMaskElts() 502 if (NumElts % Scale != 0) in widenShuffleMaskElts() [all …]
|
| H A D | Local.cpp | 61 Constant *Scale = ConstantInt::get(IntIdxTy, Size); in emitGEPOffset() local 65 ConstantExpr::getMul(OC, Scale, false /*NUW*/, isInBounds /*NSW*/); in emitGEPOffset()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/CSKY/ |
| H A D | CSKYRegisterInfo.cpp | 136 unsigned Scale = 1; in IsLegalOffset() local 139 Scale = 1; in IsLegalOffset() 143 Scale = 2; in IsLegalOffset() 147 Scale = 4; in IsLegalOffset() 151 Scale = 1; in IsLegalOffset() 155 Scale = 2; in IsLegalOffset() 159 Scale = 4; in IsLegalOffset() 163 Scale = 4; in IsLegalOffset() 171 if ((Offset & (Scale - 1)) != 0) in IsLegalOffset() 175 if ((unsigned)Offset <= Mask * Scale) in IsLegalOffset()
|
| H A D | CSKYConstantIslandPass.cpp | 506 unsigned Scale = 1; in initializeFunctionInfo() local 514 Scale = 2; in initializeFunctionInfo() 518 Scale = 2; in initializeFunctionInfo() 523 unsigned MaxOffs = ((1 << (Bits - 1)) - 1) * Scale; in initializeFunctionInfo() 538 unsigned Scale = 1; in initializeFunctionInfo() local 553 Scale = 4; in initializeFunctionInfo() 558 Scale = 4; in initializeFunctionInfo() 562 Scale = 2; in initializeFunctionInfo() 569 unsigned MaxOffs = ((1 << Bits) - 1) * Scale; in initializeFunctionInfo() 892 unsigned Bits, Scale; in getUnconditionalBrDisp() local [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Mips/ |
| H A D | MipsConstantIslandPass.cpp | 135 unsigned Bits, Scale; in branchMaxOffsets() local 139 Scale = 2; in branchMaxOffsets() 143 Scale = 2; in branchMaxOffsets() 147 Scale = 2; in branchMaxOffsets() 151 Scale = 2; in branchMaxOffsets() 155 Scale = 2; in branchMaxOffsets() 159 Scale = 2; in branchMaxOffsets() 163 Scale = 2; in branchMaxOffsets() 167 Scale = 2; in branchMaxOffsets() 171 Scale = 2; in branchMaxOffsets() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Support/ |
| H A D | RISCVVIntrinsicUtils.cpp | 112 if (!Scale) in verifyType() 116 unsigned V = *Scale; in verifyType() 211 BuiltinStr = "q" + utostr(*Scale) + BuiltinStr; in initBuiltinStr() 226 ClangBuiltinStr += "bool" + utostr(64 / *Scale) + "_t"; in initClangBuiltinStr() 280 Str += "vbool" + utostr(64 / *Scale) + "_t"; in initTypeStr() 312 ShortStr = "b" + utostr(64 / *Scale); in initShortStr() 593 Scale = 0; in applyModifier() 596 Scale = LMUL.getScale(ElementBitwidth); in applyModifier() 622 Scale = LMUL.getScale(ElementBitwidth); in applyModifier() 627 Scale = LMUL.getScale(ElementBitwidth); in applyModifier() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/MC/MCParser/ |
| H A D | MCTargetAsmParser.h | 71 unsigned Scale; member 75 OffsetName(StringRef()), Scale(1) {} in IntelExpr() 80 OffsetName(offsetName), Scale(1) { in IntelExpr() 82 Scale = scale; in IntelExpr() 92 return (Scale == 1) || in isValid() 93 (hasIndexReg() && (Scale == 2 || Scale == 4 || Scale == 8)); in isValid()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 89 Value *decomposePtr(Value *Ptr, Value *&Offsets, int &Scale, 148 Value *foldGEP(GetElementPtrInst *GEP, Value *&Offsets, unsigned &Scale, 228 int &Scale, FixedVectorType *Ty, in decomposePtr() argument 233 Scale = in decomposePtr() 236 return Scale == -1 ? nullptr : V; in decomposePtr() 250 Scale = 0; in decomposePtr() 549 int Scale; in tryCreateMaskedGatherOffset() local 551 Ptr, Offsets, Scale, cast<FixedVectorType>(ResultTy), MemoryTy, Builder); in tryCreateMaskedGatherOffset() 563 Builder.getInt32(Scale), Builder.getInt32(Unsigned), Mask}); in tryCreateMaskedGatherOffset() 569 Builder.getInt32(Scale), Builder.getInt32(Unsigned)}); in tryCreateMaskedGatherOffset() [all …]
|
| H A D | ARMBaseRegisterInfo.cpp | 535 int Scale = 1; in getFrameIndexInstrOffset() local 544 Scale = 1; in getFrameIndexInstrOffset() 552 Scale = 4; in getFrameIndexInstrOffset() 570 Scale = 4; in getFrameIndexInstrOffset() 576 return InstrOffs * Scale; in getFrameIndexInstrOffset() 735 unsigned Scale = 1; in isFrameOffsetLegal() local 744 Scale = 1; in isFrameOffsetLegal() 755 Scale = 4; in isFrameOffsetLegal() 766 Scale = 4; in isFrameOffsetLegal() 776 if ((Offset & (Scale-1)) != 0) in isFrameOffsetLegal() [all …]
|
| H A D | Thumb2InstrInfo.cpp | 640 unsigned Scale = 1; in rewriteT2FrameIndex() local 663 Scale = 4; in rewriteT2FrameIndex() 665 assert((Offset & (Scale-1)) == 0 && "Can't encode this offset!"); in rewriteT2FrameIndex() 677 Scale = 2; in rewriteT2FrameIndex() 679 assert((Offset & (Scale-1)) == 0 && "Can't encode this offset!"); in rewriteT2FrameIndex() 695 Scale = 1; in rewriteT2FrameIndex() 702 Scale = 1; in rewriteT2FrameIndex() 707 Scale = 4; in rewriteT2FrameIndex() 722 int ImmedOffset = Offset / Scale; in rewriteT2FrameIndex() 724 if ((unsigned)Offset <= Mask * Scale && in rewriteT2FrameIndex() [all …]
|
| H A D | ARMConstantIslandPass.cpp | 792 unsigned Scale = 1; in initializeFunctionInfo() local 807 Scale = 4; in initializeFunctionInfo() 813 Scale = 2; in initializeFunctionInfo() 817 Scale = 2; in initializeFunctionInfo() 823 Scale = 2; in initializeFunctionInfo() 827 Scale = 2; in initializeFunctionInfo() 832 unsigned MaxOffs = ((1 << (Bits-1))-1) * Scale; in initializeFunctionInfo() 852 unsigned Scale = 1; in initializeFunctionInfo() local 876 Scale = 4; in initializeFunctionInfo() 880 Scale = 1; in initializeFunctionInfo() [all …]
|
| H A D | ThumbRegisterInfo.cpp | 388 unsigned Scale = 4; in rewriteFrameIndex() local 390 Offset += InstrOffs * Scale; in rewriteFrameIndex() 391 assert((Offset & (Scale - 1)) == 0 && "Can't encode this offset!"); in rewriteFrameIndex() 395 int ImmedOffset = Offset / Scale; in rewriteFrameIndex() 398 if ((unsigned)Offset <= Mask * Scale) { in rewriteFrameIndex() 434 Offset &= ~(Mask * Scale); in rewriteFrameIndex()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/AsmParser/ |
| H A D | X86Operand.h | 68 unsigned Scale; member 150 if (Mem.Scale) in print() 151 OS << ",Scale=" << Mem.Scale; in print() 207 return Mem.Scale; in getMemScale() 692 Res->Mem.Scale = 1; 707 unsigned BaseReg, unsigned IndexReg, unsigned Scale, SMLoc StartLoc, 719 assert(((Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8)) && 727 Res->Mem.Scale = Scale;
|
| H A D | X86AsmParser.cpp | 50 static bool checkScale(unsigned Scale, StringRef &ErrMsg) { in checkScale() argument 51 if (Scale != 1 && Scale != 2 && Scale != 4 && Scale != 8) { in checkScale() 427 unsigned BaseReg = 0, IndexReg = 0, TmpReg = 0, Scale = 0; member in __anonbe06ec630111::X86AsmParser::IntelExprStateMachine 461 unsigned getScale() const { return Scale; } in getScale() 681 Scale = 0; in onPlus() 740 Scale = 0; in onMinus() 801 Scale = IC.popOperand(); in onRegister() 802 if (checkScale(Scale, ErrMsg)) in onRegister() 881 Scale = TmpInt; in onInteger() 882 if (checkScale(Scale, ErrMsg)) in onInteger() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | BranchProbability.cpp | 57 int Scale = 0; in getBranchProbability() local 60 Scale++; in getBranchProbability() 62 return BranchProbability(Numerator >> Scale, Denominator); in getBranchProbability()
|
| H A D | APFixedPoint.cpp | 402 int Scale = -getLsbWeight(); in toString() local 403 APSInt IntPart = (OrigWidth > Scale) ? (Val >> Scale) : APSInt::get(0); in toString() 406 unsigned Width = std::max(OrigWidth, Scale) + 4; in toString() 407 APInt FractPart = Val.zextOrTrunc(Scale).zext(Width); in toString() 408 APInt FractPartMask = APInt::getAllOnes(Scale).zext(Width); in toString() 415 .lshr(Scale) in toString()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64InstPrinter.h | 111 void printUImm12Offset(const MCInst *MI, unsigned OpNum, unsigned Scale, 113 void printAMIndexedWB(const MCInst *MI, unsigned OpNum, unsigned Scale, 116 template <int Scale> 119 printUImm12Offset(MI, OpNum, Scale, O); in printUImm12Offset() 131 template <int Scale> 135 template <int Scale, int Offset> 172 template <unsigned Scale = 1>
|
| /openbsd-src/gnu/llvm/clang/include/clang/Support/ |
| H A D | RISCVVIntrinsicUtils.h | 244 VScaleVal Scale = 0; variable 279 bool isScalar() const { return Scale && *Scale == 0; } in isScalar() 280 bool isVector() const { return Scale && *Scale != 0; } in isVector() 299 VScaleVal getScale() const { return Scale; } in getScale()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | LoopStrengthReduce.cpp | 365 int64_t Scale = 0; member 506 if (Scale != 1) in isCanonical() 509 if (Scale == 1 && BaseRegs.empty()) in isCanonical() 536 assert(Scale == 1 && "Expected 1*reg => reg"); in canonicalize() 538 Scale = 0; in canonicalize() 546 Scale = 1; in canonicalize() 567 if (Scale != 1) in unscale() 569 Scale = 0; in unscale() 645 if (Scale != 0) { in print() 647 OS << Scale << "*reg("; in print() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/ |
| H A D | Instrumentation.h | 167 static inline uint32_t scaleBranchCount(uint64_t Count, uint64_t Scale) { in scaleBranchCount() argument 168 uint64_t Scaled = Count / Scale; in scaleBranchCount()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/ |
| H A D | AArch64InstrInfo.cpp | 2615 AM.Scale = 0; in getAddrModeFromMemoryOp() 2641 TypeSize Scale(0U, false); in getMemOperandWithOffsetWidth() local 2645 if (!getMemOpInfo(LdSt.getOpcode(), Scale, Width, Dummy1, Dummy2)) in getMemOperandWithOffsetWidth() 2653 Offset = LdSt.getOperand(2).getImm() * Scale.getKnownMinValue(); in getMemOperandWithOffsetWidth() 2657 Offset = LdSt.getOperand(3).getImm() * Scale.getKnownMinValue(); in getMemOperandWithOffsetWidth() 2659 OffsetIsScalable = Scale.isScalable(); in getMemOperandWithOffsetWidth() 2675 bool AArch64InstrInfo::getMemOpInfo(unsigned Opcode, TypeSize &Scale, in getMemOpInfo() argument 2682 Scale = TypeSize::Fixed(0); in getMemOpInfo() 2689 Scale = TypeSize::Fixed(4); in getMemOpInfo() 2696 Scale = TypeSize::Fixed(1); in getMemOpInfo() [all …]
|