/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | MisExpect.cpp | 133 size_t MaxIndex = 0; in verifyMisExpect() local 138 MaxIndex = Idx; in verifyMisExpect() 145 const uint64_t ProfiledWeight = RealWeights[MaxIndex]; in verifyMisExpect()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-xray/ |
H A D | xray-color-helper.cpp | 191 size_t MaxIndex = ColorMap.size() - 1; in getColorTuple() local 194 double SectionWidth = IntervalWidth / static_cast<double>(MaxIndex); in getColorTuple() 199 auto &RGBColor1 = ColorMap[std::min(SectionNo + 1, MaxIndex)]; in getColorTuple()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaRISCV.cpp | 642 unsigned MaxIndex; in CheckBuiltinFunctionCall() local 644 MaxIndex = VecInfo.NumVectors; in CheckBuiltinFunctionCall() 646 MaxIndex = (VecInfo.EC.getKnownMinValue() * VecInfo.NumVectors) / in CheckBuiltinFunctionCall() 648 return SemaRef.BuiltinConstantArgRange(TheCall, 1, 0, MaxIndex - 1); in CheckBuiltinFunctionCall() 657 unsigned MaxIndex; in CheckBuiltinFunctionCall() local 659 MaxIndex = ResVecInfo.NumVectors; in CheckBuiltinFunctionCall() 661 MaxIndex = (ResVecInfo.EC.getKnownMinValue() * ResVecInfo.NumVectors) / in CheckBuiltinFunctionCall() 663 return SemaRef.BuiltinConstantArgRange(TheCall, 1, 0, MaxIndex - 1); in CheckBuiltinFunctionCall()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Attributes.cpp | 1338 unsigned MaxIndex = Attrs.back().first; in get() local 1341 if (MaxIndex == FunctionIndex && Attrs.size() > 1) in get() 1342 MaxIndex = Attrs[Attrs.size() - 2].first; in get() 1344 SmallVector<AttributeSet, 4> AttrVec(attrIdxToArrayIdx(MaxIndex) + 1); in get() 1524 unsigned MaxIndex = attrIdxToArrayIdx(ArgNos.back() + FirstArgIndex); in addParamAttribute() local 1525 if (MaxIndex >= AttrSets.size()) in addParamAttribute() 1526 AttrSets.resize(MaxIndex + 1); in addParamAttribute()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/ |
H A D | AMDGPUBaseInfo.cpp | 1709 unsigned MaxIndex; member 1724 if (Val.Tgt <= Id && Id <= Val.Tgt + Val.MaxIndex) { in getTgtName() 1725 Index = (Val.MaxIndex == 0) ? -1 : (Id - Val.Tgt); in getTgtName() 1736 if (Val.MaxIndex == 0 && Name == Val.Name) in getTgtId() 1739 if (Val.MaxIndex > 0 && Name.starts_with(Val.Name)) { in getTgtId() 1743 if (Suffix.getAsInteger(10, Id) || Id > Val.MaxIndex) in getTgtId()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | riscv_vector.td | 2479 unsigned MaxIndex = OpVecTy->getMinNumElements() / VecTy->getMinNumElements(); 2480 assert(isPowerOf2_32(MaxIndex)); 2482 Ops[1] = Builder.CreateAnd(Ops[1], MaxIndex - 1); 2511 unsigned MaxIndex = ResVecTy->getMinNumElements() / VecTy->getMinNumElements(); 2512 assert(isPowerOf2_32(MaxIndex)); 2514 Ops[1] = Builder.CreateAnd(Ops[1], MaxIndex - 1);
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/ |
H A D | CodeGenSchedule.cpp | 290 int64_t MaxIndex = *llvm::max_element(Indices); in constructOperandMask() local 291 assert(MaxIndex >= 0 && "Invalid negative indices in input!"); in constructOperandMask() 292 OperandMask = OperandMask.zext(MaxIndex + 1); in constructOperandMask()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Interp.h | 1844 uint64_t MaxIndex = static_cast<uint64_t>(Ptr.getNumElems()); in OffsetHelper() local 1847 Index = MaxIndex; in OffsetHelper() 1861 << NewIndex << /*array*/ static_cast<int>(!Ptr.inArray()) << MaxIndex; in OffsetHelper() 1867 uint64_t MaxOffset = MaxIndex - Index; in OffsetHelper()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGBuiltin.cpp | 17678 const int64_t MaxIndex = 12; in EmitPPCBuiltinExpr() local 17679 int64_t Index = std::clamp(ArgCI->getSExtValue(), (int64_t)0, MaxIndex); in EmitPPCBuiltinExpr() 17698 Index = MaxIndex - Index; in EmitPPCBuiltinExpr() 17720 const int64_t MaxIndex = 12; in EmitPPCBuiltinExpr() local 17721 int64_t Index = std::clamp(ArgCI->getSExtValue(), (int64_t)0, MaxIndex); in EmitPPCBuiltinExpr() 17725 Index = MaxIndex - Index; in EmitPPCBuiltinExpr()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | DAGCombiner.cpp | 23397 unsigned MaxIndex = 0; in reduceBuildVecToShuffle() local 23408 MaxIndex = std::max(MaxIndex, Index); in reduceBuildVecToShuffle() 23411 NearestPow2 = PowerOf2Ceil(MaxIndex); in reduceBuildVecToShuffle() 23412 if (InVT.isSimple() && NearestPow2 > 2 && MaxIndex < NearestPow2 && in reduceBuildVecToShuffle()
|
H A D | TargetLowering.cpp | 10136 unsigned MaxIndex = NumSubElts < NElts ? NElts - NumSubElts : 0; in clampDynamicVectorIndex() local 10138 DAG.getConstant(MaxIndex, dl, IdxVT)); in clampDynamicVectorIndex()
|