| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | ScaledNumber.h | 507 int16_t Scale = 0; variable 513 : Digits(Digits), Scale(Scale) {} in ScaledNumber() 545 if (Scale > 0 || Scale <= -Width) in isOne() 610 ScaledNumbers::getSum(Digits, Scale, X.Digits, X.Scale); 618 ScaledNumbers::getDifference(Digits, Scale, X.Digits, X.Scale); 644 ScaledNumbers::matchScales(Digits, Scale, X.Digits, X.Scale); in matchScales() 669 return ScaledNumbers::compare(Digits, Scale, X.Digits, X.Scale); in compare() 788 if (Scale > 0) { in toInt() 792 if (Scale < 0) { in toInt() 808 int32_t Scales = int32_t(Scale) + int32_t(X.Scale); [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | DurationRewriter.cpp | 21 unsigned operator()(DurationScale Scale) const { in operator ()() 22 return static_cast<unsigned>(Scale); in operator ()() 40 getDurationInverseForScale(DurationScale Scale) { in getDurationInverseForScale() argument 65 return InverseMap[Scale]; in getDurationInverseForScale() 74 getDurationInverseForScale(Scale); in rewriteInverseDurationCall() 105 switch (Scale) { in getDurationFactoryForScale() 122 llvm::StringRef getTimeFactoryForScale(DurationScale Scale) { in getTimeFactoryForScale() argument 123 switch (Scale) { in getTimeFactoryForScale() 141 llvm::StringRef getTimeInverseForScale(DurationScale Scale) { in getTimeInverseForScale() argument 142 switch (Scale) { in getTimeInverseForScale() [all …]
|
| H A D | TimeSubtractionCheck.cpp | 99 llvm::Optional<DurationScale> Scale = getScaleForTimeInverse(TimeInverse); in registerMatchers() local 100 assert(Scale && "Unknown scale encountered"); in registerMatchers() 113 callee(functionDecl(hasName(getDurationFactoryForScale(*Scale)))), in registerMatchers() 137 llvm::Optional<DurationScale> Scale = getScaleForTimeInverse(InverseName); in check() local 138 if (!Scale) in check() 155 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getRHS()) + in check() 165 getDurationFactoryForScale(*Scale))))) in check() 179 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getLHS()) + in check() 181 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getRHS()) + in check() 190 getDurationInverseForScale(*Scale).second.str().substr(2)) + in check() [all …]
|
| H A D | DurationRewriter.h | 32 llvm::StringRef getDurationFactoryForScale(DurationScale Scale); 36 llvm::StringRef getTimeFactoryForScale(DurationScale Scale); 77 getDurationInverseForScale(DurationScale Scale); 80 llvm::StringRef getTimeInverseForScale(DurationScale Scale); 85 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale, 91 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale,
|
| H A D | DurationAdditionCheck.cpp | 41 llvm::Optional<DurationScale> Scale = getScaleForTimeInverse( in check() local 43 if (!Scale) in check() 46 llvm::StringRef TimeFactory = getTimeInverseForScale(*Scale); in check() 54 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getRHS()) + ")") in check() 62 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getLHS()) + in check()
|
| H A D | DurationComparisonCheck.cpp | 33 llvm::Optional<DurationScale> Scale = getScaleForDurationInverse( in check() local 35 if (!Scale) in check() 45 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getLHS()); in check() 47 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getRHS()); in check()
|
| H A D | TimeComparisonCheck.cpp | 34 llvm::Optional<DurationScale> Scale = getScaleForTimeInverse( in check() local 36 if (!Scale) in check() 47 rewriteExprFromNumberToTime(Result, *Scale, Binop->getLHS()); in check() 49 rewriteExprFromNumberToTime(Result, *Scale, Binop->getRHS()); in check()
|
| H A D | DurationConversionCastCheck.cpp | 47 llvm::Optional<DurationScale> Scale = in check() local 49 if (!Scale) in check() 55 llvm::StringRef NewFuncName = getDurationInverseForScale(*Scale).second; in check() 70 llvm::StringRef NewFuncName = getDurationInverseForScale(*Scale).first; in check()
|
| H A D | DurationSubtractionCheck.cpp | 40 llvm::Optional<DurationScale> Scale = in check() local 42 if (!Scale) in check() 46 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getRHS()); in check()
|
| H A D | DurationUnnecessaryConversionCheck.cpp | 23 for (const auto &Scale : {"Hours", "Minutes", "Seconds", "Milliseconds", in registerMatchers() 25 std::string DurationFactory = (llvm::Twine("::absl::") + Scale).str(); in registerMatchers() 27 (llvm::Twine("::absl::ToDouble") + Scale).str(); in registerMatchers() 29 (llvm::Twine("::absl::ToInt64") + Scale).str(); in registerMatchers()
|
| H A D | DurationFactoryScaleCheck.cpp | 162 DurationScale Scale = *MaybeScale; in check() local 176 NewScale = getNewScale(Scale, getValue(IntLit, FloatLit)); in check() 186 NewScale = getNewScale(Scale, getValue(IntLit, FloatLit)); in check() 198 getNewScale(Scale, 1.0 / FloatLit->getValueAsApproximateDouble()); in check()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/bolt/lib/Passes/ |
| H A D | JTFootprintReduction.cpp | 61 uint64_t Scale; in checkOpportunities() local 65 BC.MIB->matchImm(Scale), BC.MIB->matchReg(), in checkOpportunities() 71 Scale == 8) { in checkOpportunities() 103 Scale != 4 || BaseReg1 != BaseReg2 || Offset != 0 || in checkOpportunities() 137 uint64_t Scale; in tryOptimizeNonPIC() local 149 assert(Scale == 8 && "Wrong scale"); in tryOptimizeNonPIC() 151 Scale = 4; in tryOptimizeNonPIC() 160 BC.MIB->createIJmp32Frag(NewFrag, Base, MCOperand::createImm(Scale), in tryOptimizeNonPIC() 176 uint64_t Scale; in tryOptimizePIC() local 191 assert(Scale == 4 && "Wrong scale"); in tryOptimizePIC() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A 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
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | BasicAliasAnalysis.cpp | 321 APInt Scale; member 329 : Val(Val), Scale(Scale), Offset(Offset), IsNSW(IsNSW) {} in LinearExpression() 459 APInt Scale; member 640 APInt Scale = LE.Scale.sext(MaxIndexSize); in DecomposeGEPExpression() local 649 Scale += Decomposed.VarIndices[i].Scale; in DecomposeGEPExpression() 657 Scale = adjustToIndexSize(Scale, IndexSize); in DecomposeGEPExpression() 1218 const APInt &Scale = Index.Scale; in aliasGEP() local 1310 if (Var0.Scale == -Var1.Scale && Var0.Val.TruncBits == 0 && in aliasGEP() 1790 if (Dest.Scale != Src.Scale) { in subtractDecomposedGEPs() 1791 Dest.Scale -= Src.Scale; in subtractDecomposedGEPs() [all …]
|
| H A D | VectorUtils.cpp | 434 assert(Scale > 0 && "Unexpected scaling factor"); in narrowShuffleMaskElts() 437 if (Scale == 1) { in narrowShuffleMaskElts() 445 assert(((uint64_t)Scale * MaskElt + (Scale - 1)) <= INT32_MAX && in narrowShuffleMaskElts() 455 assert(Scale > 0 && "Unexpected scaling factor"); in widenShuffleMaskElts() 458 if (Scale == 1) { in widenShuffleMaskElts() 465 if (NumElts % Scale != 0) in widenShuffleMaskElts() 469 ScaledMask.reserve(NumElts / Scale); in widenShuffleMaskElts() 486 if (SliceFront % Scale != 0) in widenShuffleMaskElts() 489 for (int i = 1; i < Scale; ++i) in widenShuffleMaskElts() 492 ScaledMask.push_back(SliceFront / Scale); in widenShuffleMaskElts() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/ |
| H A D | MipsConstantIslandPass.cpp | 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() 175 Scale = 2; in branchMaxOffsets() [all …]
|
| /llvm-project-15.0.7/clang/lib/Support/ |
| H A D | RISCVVIntrinsicUtils.cpp | 113 if (!Scale) in verifyType() 117 unsigned V = Scale.value(); in verifyType() 313 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() 632 Scale = LMUL.getScale(ElementBitwidth); in applyModifier() 753 Scale = LMUL.getScale(ElementBitwidth); in applyLog2EEW() 764 Scale = LMUL.getScale(ElementBitwidth); in applyFixedSEW() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/MC/MCParser/ |
| H A D | MCTargetAsmParser.h | 70 unsigned Scale; member 74 OffsetName(StringRef()), Scale(1) {} in IntelExpr() 79 OffsetName(offsetName), Scale(1) { in IntelExpr() 81 Scale = scale; in IntelExpr() 91 return (Scale == 1) || in isValid() 92 (hasIndexReg() && (Scale == 2 || Scale == 4 || Scale == 8)); in isValid()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | pragma-loop.cpp | 134 const int Scale = 4; in for_template_constant_expression_test() local 135 #pragma clang loop vectorize_width(Scale * V) interleave_count(Scale * I) unroll_count(Scale * U) in for_template_constant_expression_test() 141 #pragma clang loop vectorize_width((Scale * V) + 2) in for_template_constant_expression_test()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 233 Scale = in decomposePtr() 236 return Scale == -1 ? nullptr : V; in decomposePtr() 250 Scale = 0; in decomposePtr() 549 int Scale; in tryCreateMaskedGatherOffset() local 702 int Scale; in tryCreateMaskedScatterOffset() local 717 Builder.getInt32(Scale), Mask}); in tryCreateMaskedScatterOffset() 724 Builder.getInt32(Scale)}); in tryCreateMaskedScatterOffset() 1198 Offsets, Scale, GEP->getOperand(1), in foldGEP() 1202 Scale = 1; // Scale is always an i8 at this point. in foldGEP() 1219 unsigned Scale; in optimiseAddress() local [all …]
|
| /llvm-project-15.0.7/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;
|
| /llvm-project-15.0.7/clang/include/clang/Support/ |
| H A D | RISCVVIntrinsicUtils.h | 182 VScaleVal Scale = 0; variable 218 bool isScalar() const { return Scale && Scale.value() == 0; } in isScalar() 219 bool isVector() const { return Scale && Scale.value() != 0; } in isVector() 238 VScaleVal getScale() const { return Scale; } in getScale()
|
| /llvm-project-15.0.7/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()
|