| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
| 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 …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
| 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()
|
| D | X86ISelDAGToDAG.cpp | 68 unsigned Scale; member 83 : BaseType(RegBase), Base_FrameIndex(0), Scale(1), IndexReg(), Disp(0), in X86ISelAddressMode() 121 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 [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/ |
| D | BasicAliasAnalysis.cpp | 284 APInt Scale; member 290 LinearExpression(const ExtendedValue &Val, const APInt &Scale, in LinearExpression() 292 : Val(Val), Scale(Scale), Offset(Offset), IsNSW(IsNSW) {} in LinearExpression() 296 Scale = APInt(BitWidth, 1); in LinearExpression() 360 E.Scale *= RHS; in GetLinearExpression() 376 E.Scale <<= RHS.getLimitedValue(); in GetLinearExpression() 542 APInt Scale(MaxPointerSize, in DecomposeGEPExpression() local 563 .smul_ov(Scale, Overflow); in DecomposeGEPExpression() 568 Scale *= LE.Scale.sextOrTrunc(MaxPointerSize); in DecomposeGEPExpression() 579 Scale += Decomposed.VarIndices[i].Scale; in DecomposeGEPExpression() [all …]
|
| D | VectorUtils.cpp | 421 void llvm::narrowShuffleMaskElts(int Scale, ArrayRef<int> Mask, in narrowShuffleMaskElts() argument 423 assert(Scale > 0 && "Unexpected scaling factor"); in narrowShuffleMaskElts() 426 if (Scale == 1) { in narrowShuffleMaskElts() 434 assert(((uint64_t)Scale * MaskElt + (Scale - 1)) <= INT32_MAX && in narrowShuffleMaskElts() 437 for (int SliceElt = 0; SliceElt != Scale; ++SliceElt) in narrowShuffleMaskElts() 438 ScaledMask.push_back(MaskElt < 0 ? MaskElt : Scale * MaskElt + SliceElt); in narrowShuffleMaskElts() 442 bool llvm::widenShuffleMaskElts(int Scale, ArrayRef<int> Mask, in widenShuffleMaskElts() argument 444 assert(Scale > 0 && "Unexpected scaling factor"); in widenShuffleMaskElts() 447 if (Scale == 1) { in widenShuffleMaskElts() 454 if (NumElts % Scale != 0) in widenShuffleMaskElts() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/ADT/ |
| D | APFixedPoint.h | 35 FixedPointSemantics(unsigned Width, unsigned Scale, bool IsSigned, in FixedPointSemantics() argument 37 : Width(Width), Scale(Scale), IsSigned(IsSigned), in FixedPointSemantics() 39 assert(Width >= Scale && "Not enough room for the scale"); in FixedPointSemantics() 45 unsigned getScale() const { return Scale; } in getScale() 57 return Width - Scale - 1; in getIntegralBits() 59 return Width - Scale; in getIntegralBits() 88 unsigned Scale : 13; variable
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
| 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 …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/MC/MCParser/ |
| D | MCTargetAsmParser.h | 69 unsigned Scale; member 73 OffsetName(StringRef()), Scale(1) {} in IntelExpr() 78 OffsetName(offsetName), Scale(1) { in IntelExpr() 80 Scale = scale; in IntelExpr() 90 return (Scale == 1) || in isValid() 91 (hasIndexReg() && (Scale == 2 || Scale == 4 || Scale == 8)); in isValid()
|
| /freebsd-12-stable/contrib/llvm-project/clang/utils/TableGen/ |
| D | RISCVVEmitter.cpp | 67 VScaleVal Scale = 0; member in __anon9dadc4d40111::RVVType 101 bool isScalar() const { return Scale.hasValue() && Scale.getValue() == 0; } in isScalar() 102 bool isVector() const { return Scale.hasValue() && Scale.getValue() != 0; } in isVector() 343 if (!Scale.hasValue()) in verifyType() 347 unsigned V = Scale.getValue(); in verifyType() 442 BuiltinStr = "q" + utostr(Scale.getValue()) + BuiltinStr; in initBuiltinStr() 457 ClangBuiltinStr += "bool" + utostr(64 / Scale.getValue()) + "_t"; in initClangBuiltinStr() 511 Str += "vbool" + utostr(64 / Scale.getValue()) + "_t"; in initTypeStr() 543 ShortStr = "b" + utostr(64 / Scale.getValue()); in initShortStr() 604 Scale = 0; in applyModifier() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/ |
| D | X86Operand.h | 63 unsigned Scale; member 140 if (Mem.Scale) in print() 141 OS << ",Scale=" << Mem.Scale; in print() 197 return Mem.Scale; in getMemScale() 674 Res->Mem.Scale = 1; 687 unsigned BaseReg, unsigned IndexReg, unsigned Scale, SMLoc StartLoc, 698 assert(((Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8)) && 706 Res->Mem.Scale = Scale;
|
| D | X86AsmParser.cpp | 49 static bool checkScale(unsigned Scale, StringRef &ErrMsg) { in checkScale() argument 50 if (Scale != 1 && Scale != 2 && Scale != 4 && Scale != 8) { in checkScale() 426 unsigned BaseReg, IndexReg, TmpReg, Scale; member in __anonc9a05f840111::X86AsmParser::IntelExprStateMachine 451 TmpReg(0), Scale(0), Imm(0), Sym(nullptr), BracCount(0), in IntelExprStateMachine() 461 unsigned getScale() const { return Scale; } in getScale() 663 Scale = 0; in onPlus() 724 Scale = 0; in onMinus() 787 Scale = IC.popOperand(); in onRegister() 788 if (checkScale(Scale, ErrMsg)) in onRegister() 869 Scale = TmpInt; in onInteger() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Support/ |
| D | BranchProbability.cpp | 57 int Scale = 0; in getBranchProbability() local 60 Scale++; in getBranchProbability() 62 return BranchProbability(Numerator >> Scale, Denominator); in getBranchProbability()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| D | LoopStrengthReduce.cpp | 350 int64_t Scale = 0; member 485 if (Scale != 1) in isCanonical() 488 if (Scale == 1 && BaseRegs.empty()) in isCanonical() 518 assert(Scale == 1 && "Expected 1*reg => reg"); in canonicalize() 520 Scale = 0; in canonicalize() 528 Scale = 1; in canonicalize() 551 if (Scale != 1) in unscale() 553 Scale = 0; in unscale() 629 if (Scale != 0) { in print() 631 OS << Scale << "*reg("; in print() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
| D | ARMBaseRegisterInfo.cpp | 522 int Scale = 1; in getFrameIndexInstrOffset() local 529 Scale = 1; in getFrameIndexInstrOffset() 537 Scale = 4; in getFrameIndexInstrOffset() 555 Scale = 4; in getFrameIndexInstrOffset() 561 return InstrOffs * Scale; in getFrameIndexInstrOffset() 720 unsigned Scale = 1; in isFrameOffsetLegal() local 727 Scale = 1; in isFrameOffsetLegal() 738 Scale = 4; in isFrameOffsetLegal() 749 Scale = 4; in isFrameOffsetLegal() 759 if ((Offset & (Scale-1)) != 0) in isFrameOffsetLegal() [all …]
|
| D | Thumb2InstrInfo.cpp | 624 unsigned Scale = 1; in rewriteT2FrameIndex() local 646 Scale = 4; in rewriteT2FrameIndex() 648 assert((Offset & (Scale-1)) == 0 && "Can't encode this offset!"); in rewriteT2FrameIndex() 660 Scale = 2; in rewriteT2FrameIndex() 662 assert((Offset & (Scale-1)) == 0 && "Can't encode this offset!"); in rewriteT2FrameIndex() 678 Scale = 1; in rewriteT2FrameIndex() 685 Scale = 1; in rewriteT2FrameIndex() 690 Scale = 4; in rewriteT2FrameIndex() 705 int ImmedOffset = Offset / Scale; in rewriteT2FrameIndex() 707 if ((unsigned)Offset <= Mask * Scale && in rewriteT2FrameIndex() [all …]
|
| D | ARMConstantIslandPass.cpp | 746 unsigned Scale = 1; in initializeFunctionInfo() local 761 Scale = 4; in initializeFunctionInfo() 767 Scale = 2; in initializeFunctionInfo() 771 Scale = 2; in initializeFunctionInfo() 777 Scale = 2; in initializeFunctionInfo() 781 Scale = 2; in initializeFunctionInfo() 786 unsigned MaxOffs = ((1 << (Bits-1))-1) * Scale; in initializeFunctionInfo() 806 unsigned Scale = 1; in initializeFunctionInfo() local 830 Scale = 4; in initializeFunctionInfo() 834 Scale = 1; in initializeFunctionInfo() [all …]
|
| D | MVEGatherScatterLowering.cpp | 88 Value *decomposePtr(Value *Ptr, Value *&Offsets, int &Scale, 226 int &Scale, FixedVectorType *Ty, in decomposePtr() argument 231 Scale = in decomposePtr() 234 return Scale == -1 ? nullptr : V; in decomposePtr() 248 Scale = 0; in decomposePtr() 534 int Scale; in tryCreateMaskedGatherOffset() local 536 Ptr, Offsets, Scale, cast<FixedVectorType>(ResultTy), MemoryTy, Builder); in tryCreateMaskedGatherOffset() 548 Builder.getInt32(Scale), Builder.getInt32(Unsigned), Mask}); in tryCreateMaskedGatherOffset() 554 Builder.getInt32(Scale), Builder.getInt32(Unsigned)}); in tryCreateMaskedGatherOffset() 687 int Scale; in tryCreateMaskedScatterOffset() local [all …]
|
| D | ThumbRegisterInfo.cpp | 387 unsigned Scale = 4; in rewriteFrameIndex() local 389 Offset += InstrOffs * Scale; in rewriteFrameIndex() 390 assert((Offset & (Scale - 1)) == 0 && "Can't encode this offset!"); in rewriteFrameIndex() 394 int ImmedOffset = Offset / Scale; in rewriteFrameIndex() 397 if ((unsigned)Offset <= Mask * Scale) { in rewriteFrameIndex() 422 Offset &= ~(Mask * Scale); in rewriteFrameIndex()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
| D | AArch64InstPrinter.h | 108 void printUImm12Offset(const MCInst *MI, unsigned OpNum, unsigned Scale, 110 void printAMIndexedWB(const MCInst *MI, unsigned OpNum, unsigned Scale, 113 template <int Scale> 116 printUImm12Offset(MI, OpNum, Scale, O); in printUImm12Offset() 128 template <int Scale>
|
| /freebsd-12-stable/share/misc/ |
| D | usb_hid_usages | 1675 0x20 Scale Device 1676 0x21 Scale Class I Metric 1677 0x22 Scale Class I Metric 1678 0x23 Scale Class II Metric 1679 0x24 Scale Class III Metric 1680 0x25 Scale Class IIIL Metric 1681 0x26 Scale Class IV Metric 1682 0x27 Scale Class III English 1683 0x28 Scale Class IIIL English 1684 0x29 Scale Class IV English [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Transforms/ |
| D | Instrumentation.h | 190 static inline uint32_t scaleBranchCount(uint64_t Count, uint64_t Scale) { in scaleBranchCount() argument 191 uint64_t Scaled = Count / Scale; in scaleBranchCount()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/Utils/ |
| D | Local.h | 68 Constant *Scale = ConstantInt::get(IntIdxTy, Size); 72 ConstantExpr::getMul(OC, Scale, false /*NUW*/, isInBounds /*NSW*/);
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| D | AArch64InstrInfo.cpp | 2588 TypeSize Scale(0U, false); in getMemOperandWithOffsetWidth() local 2592 if (!getMemOpInfo(LdSt.getOpcode(), Scale, Width, Dummy1, Dummy2)) in getMemOperandWithOffsetWidth() 2600 Offset = LdSt.getOperand(2).getImm() * Scale.getKnownMinSize(); in getMemOperandWithOffsetWidth() 2604 Offset = LdSt.getOperand(3).getImm() * Scale.getKnownMinSize(); in getMemOperandWithOffsetWidth() 2606 OffsetIsScalable = Scale.isScalable(); in getMemOperandWithOffsetWidth() 2622 bool AArch64InstrInfo::getMemOpInfo(unsigned Opcode, TypeSize &Scale, in getMemOpInfo() argument 2629 Scale = TypeSize::Fixed(0); in getMemOpInfo() 2636 Scale = TypeSize::Fixed(4); in getMemOpInfo() 2643 Scale = TypeSize::Fixed(1); in getMemOpInfo() 2653 Scale = TypeSize::Fixed(1); in getMemOpInfo() [all …]
|
| D | AArch64RegisterInfo.td | 1085 class ZPRExtendAsmOperand<string ShiftExtend, int RegWidth, int Scale, 1087 let Name = "ZPRExtend" # ShiftExtend # RegWidth # Scale 1093 # Scale # ", " 1096 let DiagnosticType = "InvalidZPR" # RegWidth # ShiftExtend # Scale; 1102 int RegWidth, int Scale, string Suffix = ""> 1105 !cast<AsmOperandClass>("ZPR" # RegWidth # "AsmOpndExt" # Repr # Scale # Suffix); 1108 # Scale # ", " 1151 class GPR64ShiftExtendAsmOperand <string AsmOperandName, int Scale, string RegClass> : AsmOperandCl… 1152 let Name = AsmOperandName # Scale; 1153 let PredicateMethod = "isGPR64WithShiftExtend<AArch64::"#RegClass#"RegClassID, " # Scale # ">"; [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| D | TargetTransformInfoImpl.h | 200 bool HasBaseReg, int64_t Scale, unsigned AddrSpace, 204 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1); 275 int64_t Scale, in getScalingFactorCost() argument 278 if (isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale, in getScalingFactorCost() 872 int64_t Scale = 0; variable 907 if (Scale != 0) 910 Scale = ElementSize; 917 BaseOffset.sextOrTrunc(64).getSExtValue(), HasBaseReg, Scale,
|