/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | ScaledNumber.h | 46 /// Given \c Digits and \c Scale, round up iff \c ShouldRound is \c true. 47 /// Always returns \c Scale unless there's an overflow, in which case it 48 /// returns \c 1+Scale. 50 /// \pre adding 1 to \c Scale will not overflow INT16_MAX. 52 inline std::pair<DigitsT, int16_t> getRounded(DigitsT Digits, int16_t Scale, argument 59 return std::make_pair(DigitsT(1) << (getWidth<DigitsT>() - 1), Scale + 1); 60 return std::make_pair(Digits, Scale); 64 inline std::pair<uint32_t, int16_t> getRounded32(uint32_t Digits, int16_t Scale, argument 66 return getRounded(Digits, Scale, ShouldRound); 70 inline std::pair<uint64_t, int16_t> getRounded64(uint64_t Digits, int16_t Scale, argument 188 getLgImpl(DigitsT Digits, int16_t Scale) argument 213 getLg(DigitsT Digits, int16_t Scale) argument 222 getLgFloor(DigitsT Digits, int16_t Scale) argument 232 getLgCeiling(DigitsT Digits, int16_t Scale) argument 507 int16_t Scale = 0; member in class:llvm::ScaledNumber 512 ScaledNumber(DigitsType Digits, int16_t Scale) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstrBuilder.h | 19 // (Operand), Base, Scale, Index, Displacement. 53 unsigned Scale; member in struct:llvm::X86AddressMode 60 : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(nullptr), 66 assert(Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8); 76 MO.push_back(MachineOperand::CreateImm(Scale)); 105 AM.Scale = Op1.getImm(); 134 // Direct memory address is in a form of: Reg/FI, 1 (Scale), NoRe [all...] |
H A D | X86ISelDAGToDAG.cpp | 65 unsigned Scale; member in struct:__anon104::X86ISelAddressMode 80 : BaseType(RegBase), Base_FrameIndex(0), Scale(1), IndexReg(), Disp(0), 118 dbgs() << " Scale " << Scale << '\n' 222 SDValue &Scale, SDValue &Index, SDValue &Disp, 225 SDValue &Scale, SDValue &Index, SDValue &Disp, 229 SDValue &Scale, SDValue &Index, SDValue &Disp, 232 SDValue &Scale, SDValue &Index, SDValue &Disp, 235 SDValue &Scale, SDValue &Index, SDValue &Disp, 238 SDValue &Base, SDValue &Scale, 250 tryFoldLoad(SDNode *P, SDValue N, SDValue &Base, SDValue &Scale, SDValue &Index, SDValue &Disp, SDValue &Segment) argument 269 getAddressOperands(X86ISelAddressMode &AM, const SDLoc &DL, MVT VT, SDValue &Base, SDValue &Scale, SDValue &Index, SDValue &Disp, SDValue &Segment) argument 2283 selectVectorAddr(SDNode *Parent, SDValue N, SDValue &Base, SDValue &Scale, SDValue &Index, SDValue &Disp, SDValue &Segment) argument 2317 selectAddr(SDNode *Parent, SDValue N, SDValue &Base, SDValue &Scale, SDValue &Index, SDValue &Disp, SDValue &Segment) argument 2374 selectScalarSSELoad(SDNode *Root, SDNode *Parent, SDValue N, SDValue &Base, SDValue &Scale, SDValue &Index, SDValue &Disp, SDValue &Segment, SDValue &PatternNodeWithChain) argument 2458 selectLEA64_32Addr(SDValue N, SDValue &Base, SDValue &Scale, SDValue &Index, SDValue &Disp, SDValue &Segment) argument 2495 selectLEAAddr(SDValue N, SDValue &Base, SDValue &Scale, SDValue &Index, SDValue &Disp, SDValue &Segment) argument 2585 selectTLSADDRAddr(SDValue N, SDValue &Base, SDValue &Scale, SDValue &Index, SDValue &Disp, SDValue &Segment) argument 2649 tryFoldLoad(SDNode *Root, SDNode *P, SDValue N, SDValue &Base, SDValue &Scale, SDValue &Index, SDValue &Disp, SDValue &Segment) argument 2663 tryFoldBroadcast(SDNode *Root, SDNode *P, SDValue N, SDValue &Base, SDValue &Scale, SDValue &Index, SDValue &Disp, SDValue &Segment) argument 3050 SDValue Base, Scale, Index, Disp, Segment; local 4300 unsigned Scale = CmpVT.is128BitVector() ? 4 : 2; local [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | FixedPoint.h | 35 FixedPointSemantics(unsigned Width, unsigned Scale, bool IsSigned, argument 37 : Width(Width), Scale(Scale), IsSigned(IsSigned), 39 assert(Width >= Scale && "Not enough room for the scale"); 45 unsigned getScale() const { return Scale; } 57 return Width - Scale - 1; 59 return Width - Scale; 72 return FixedPointSemantics(Width, /*Scale=*/0, IsSigned, 79 unsigned Scale; member in class:clang::FixedPointSemantics
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | BranchProbability.cpp | 55 // Scale down Denominator to fit in a 32-bit integer. 56 int Scale = 0; local 59 Scale++; 61 return BranchProbability(Numerator >> Scale, Denominator);
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/Utils/ |
H A D | Local.h | 68 Constant *Scale = ConstantInt::get(IntIdxTy, Size); local 70 Scale = 71 ConstantExpr::getMul(OC, Scale, false /*NUW*/, isInBounds /*NSW*/); 73 Result = Builder->CreateAdd(Result, Scale, GEP->getName()+".offs");
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | BasicAliasAnalysis.cpp | 279 const Value *V, APInt &Scale, APInt &Offset, unsigned &ZExtBits, 286 Scale = 1; 298 assert(Scale == 0 && "Constant values don't have a scale"); 304 // If we've been called recursively, then Offset and Scale will be wider 313 Scale = 1; 321 Scale = 1; 327 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, 332 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, 337 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, ZExtBits, 340 Scale * 278 GetLinearExpression( const Value *V, APInt &Scale, APInt &Offset, unsigned &ZExtBits, unsigned &SExtBits, const DataLayout &DL, unsigned Depth, AssumptionCache *AC, DominatorTree *DT, bool &NSW, bool &NUW) argument 1499 APInt Scale = DecompGEP1.VarIndices[i].Scale; local 1952 APInt Scale = Src[i].Scale; local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/MC/MCParser/ |
H A D | MCTargetAsmParser.h | 45 AOK_IntelExpr // SizeDirective SymDisp [BaseReg + IndexReg * Scale + ImmDisp] 70 unsigned Scale; member in struct:llvm::IntelExpr 74 OffsetName(StringRef()), Scale(1) {} 79 OffsetName(offsetName), Scale(1) { 81 Scale = scale; 91 return (Scale == 1) || 92 (hasIndexReg() && (Scale == 2 || Scale == 4 || Scale == 8));
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | MVEGatherScatterLowering.cpp | 244 unsigned Scale; local 251 Scale = 2; 253 Scale = 1; 255 Scale = 0; 268 Builder.getInt32(Scale), Builder.getInt32(1), Mask}); 274 Builder.getInt32(Scale), Builder.getInt32(1)});
|
H A D | ARMBaseRegisterInfo.cpp | 502 int Scale = 1; local 509 Scale = 1; 517 Scale = 4; 535 Scale = 4; 541 return InstrOffs * Scale; 696 unsigned Scale = 1; local 703 Scale = 1; 714 Scale = 4; 725 Scale = 4; 735 if ((Offset & (Scale [all...] |
H A D | Thumb2InstrInfo.cpp | 579 unsigned Scale = 1; 601 Scale = 4; 603 assert((Offset & (Scale-1)) == 0 && "Can't encode this offset!"); 615 Scale = 2; 617 assert((Offset & (Scale-1)) == 0 && "Can't encode this offset!"); 633 Scale = 1; 640 Scale = 1; 645 Scale = 4; 660 int ImmedOffset = Offset / Scale; 662 if ((unsigned)Offset <= Mask * Scale [all...] |
H A D | ThumbRegisterInfo.cpp | 388 unsigned Scale = 4; 390 Offset += InstrOffs * Scale; 391 assert((Offset & (Scale - 1)) == 0 && "Can't encode this offset!"); 395 int ImmedOffset = Offset / Scale; 398 if ((unsigned)Offset <= Mask * Scale) { 423 Offset &= ~(Mask * Scale);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsConstantIslandPass.cpp | 135 unsigned Bits, Scale; local 139 Scale = 2; 143 Scale = 2; 147 Scale = 2; 151 Scale = 2; 155 Scale = 2; 159 Scale = 2; 163 Scale = 2; 167 Scale = 2; 171 Scale 666 unsigned Scale = 1; local 746 unsigned Scale = 1; local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/ |
H A D | X86Operand.h | 64 unsigned Scale; member in struct:llvm::final::MemOp 140 if (Mem.Scale) 141 OS << ",Scale=" << Mem.Scale; 193 return Mem.Scale; 637 Res->Mem.Scale = 1; 650 unsigned BaseReg, unsigned IndexReg, unsigned Scale, SMLoc StartLoc, 658 assert(((Scale == 1 || Scale == 2 || Scale 649 CreateMem(unsigned ModeSize, unsigned SegReg, const MCExpr *Disp, unsigned BaseReg, unsigned IndexReg, unsigned Scale, SMLoc StartLoc, SMLoc EndLoc, unsigned Size = 0, StringRef SymName = StringRef(), void *OpDecl = nullptr, unsigned FrontendSize = 0) argument [all...] |
H A D | X86AsmParser.cpp | 42 static bool checkScale(unsigned Scale, StringRef &ErrMsg) { argument 43 if (Scale != 1 && Scale != 2 && Scale != 4 && Scale != 8) { 153 return -1; // The invalid Scale value will be caught later by checkScale 345 unsigned BaseReg, IndexReg, TmpReg, Scale; member in class:__anon2455::X86AsmParser::IntelExprStateMachine 369 TmpReg(0), Scale(0), Imm(0), Sym(nullptr), BracCount(0), 379 unsigned getScale() { return Scale; } 487 Scale 1043 CheckBaseRegAndIndexRegAndScale(unsigned BaseReg, unsigned IndexReg, unsigned Scale, bool Is64BitMode, StringRef &ErrMsg) argument 1408 CreateMemForInlineAsm( unsigned SegReg, const MCExpr *Disp, unsigned BaseReg, unsigned IndexReg, unsigned Scale, SMLoc Start, SMLoc End, unsigned Size, StringRef Identifier, const InlineAsmIdentifierInfo &Info) argument 1972 unsigned Scale = SM.getScale(); local 2294 unsigned BaseReg = 0, IndexReg = 0, Scale = 1; local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Transforms/ |
H A D | Instrumentation.h | 194 /// Scale an individual branch count. 196 /// Scale a 64-bit weight down to 32-bits using \c Scale. 198 static inline uint32_t scaleBranchCount(uint64_t Count, uint64_t Scale) { argument 199 uint64_t Scaled = Count / Scale;
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | BasicAliasAnalysis.h | 109 // SExtBits), ZExtBits) * Scale + Offset. 121 APInt Scale; member in struct:llvm::BasicAAResult::VariableGEPIndex 125 SExtBits == Other.SExtBits && Scale == Other.Scale; 167 GetLinearExpression(const Value *V, APInt &Scale, APInt &Offset,
|
H A D | TargetTransformInfoImpl.h | 231 bool HasBaseReg, int64_t Scale, 235 return !BaseGV && BaseOffset == 0 && (Scale == 0 || Scale == 1); 294 bool HasBaseReg, int64_t Scale, unsigned AddrSpace) { 297 Scale, AddrSpace)) 759 int64_t Scale = 0; local 789 if (Scale != 0) 792 Scale = ElementSize; 799 BaseOffset.sextOrTrunc(64).getSExtValue(), HasBaseReg, Scale, 230 isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale, unsigned AddrSpace, Instruction *I = nullptr) argument 293 getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale, unsigned AddrSpace) argument
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Basic/ |
H A D | FixedPoint.cpp | 178 unsigned Scale = getScale(); local 185 llvm::APSInt IntPart = Val >> Scale; 189 llvm::APInt FractPart = Val.zextOrTrunc(Scale).zext(Width); 190 llvm::APInt FractPartMask = llvm::APInt::getAllOnesValue(Scale).zext(Width); 197 .lshr(Scale)
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
H A D | AArch64InstPrinter.h | 102 void printUImm12Offset(const MCInst *MI, unsigned OpNum, unsigned Scale, 104 void printAMIndexedWB(const MCInst *MI, unsigned OpNum, unsigned Scale, 107 template <int Scale> 110 printUImm12Offset(MI, OpNum, Scale, O); 122 template <int Scale>
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LoopStrengthReduce.cpp | 153 // the same ScaledReg and Scale. 157 " with the same ScaledReg and Scale")); 335 int64_t Scale = 0; member in struct:__anon2713::Formula 340 /// 2. ScaledReg != NULL implies Scale != 1 || !BaseRegs.empty(). 353 /// The 'scaled' register for this use. This should be non-null when Scale is 470 if (Scale != 1) 473 if (Scale == 1 && BaseRegs.empty()) 508 Scale = 1; 531 if (Scale != 1) 533 Scale 611 OS << Scale << "*reg("; local 1629 isAMCompletelyFolded(const TargetTransformInfo &TTI, LSRUse::KindType Kind, MemAccessTy AccessTy, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale, Instruction *Fixup ) argument 1683 isAMCompletelyFolded(const TargetTransformInfo &TTI, int64_t MinOffset, int64_t MaxOffset, LSRUse::KindType Kind, MemAccessTy AccessTy, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale) argument 1721 isLegalUse(const TargetTransformInfo &TTI, int64_t MinOffset, int64_t MaxOffset, LSRUse::KindType Kind, MemAccessTy AccessTy, GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg, int64_t Scale) argument 2454 int64_t Scale = C->getSExtValue(); local [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | CharUnits.h | 212 inline clang::CharUnits operator* (clang::CharUnits::QuantityType Scale, argument 214 return CU * Scale;
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | ProfileSummary.h | 56 static const int Scale = 1000000; member in class:llvm::ProfileSummary
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | IndirectCallPromotion.cpp | 305 uint64_t Scale = calculateCountScale(MaxCount); local 308 scaleBranchCount(Count, Scale), scaleBranchCount(ElseCount, Scale));
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ProfileData/ |
H A D | ProfileSummaryBuilder.cpp | 24 // A set of cutoff values. Each value, when divided by ProfileSummary::Scale 76 APInt D(128, ProfileSummary::Scale);
|