Home
last modified time | relevance | path

Searched refs:MaxIndex (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMisExpect.cpp132 size_t MaxIndex = 0; in verifyMisExpect() local
137 MaxIndex = Idx; in verifyMisExpect()
144 const uint64_t ProfiledWeight = RealWeights[MaxIndex]; in verifyMisExpect()
/freebsd/contrib/llvm-project/llvm/tools/llvm-xray/
H A Dxray-color-helper.cpp191 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/llvm/lib/IR/
H A DAttributes.cpp1208 unsigned MaxIndex = Attrs.back().first; in get() local
1211 if (MaxIndex == FunctionIndex && Attrs.size() > 1) in get()
1212 MaxIndex = Attrs[Attrs.size() - 2].first; in get()
1214 SmallVector<AttributeSet, 4> AttrVec(attrIdxToArrayIdx(MaxIndex) + 1); in get()
1394 unsigned MaxIndex = attrIdxToArrayIdx(ArgNos.back() + FirstArgIndex); in addParamAttribute() local
1395 if (MaxIndex >= AttrSets.size()) in addParamAttribute()
1396 AttrSets.resize(MaxIndex + 1); in addParamAttribute()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUBaseInfo.cpp1708 unsigned MaxIndex; member
1723 if (Val.Tgt <= Id && Id <= Val.Tgt + Val.MaxIndex) { in getTgtName()
1724 Index = (Val.MaxIndex == 0) ? -1 : (Id - Val.Tgt); in getTgtName()
1735 if (Val.MaxIndex == 0 && Name == Val.Name) in getTgtId()
1738 if (Val.MaxIndex > 0 && Name.starts_with(Val.Name)) { in getTgtId()
1742 if (Suffix.getAsInteger(10, Id) || Id > Val.MaxIndex) in getTgtId()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A Driscv_vector.td2402 unsigned MaxIndex = OpVecTy->getMinNumElements() / VecTy->getMinNumElements();
2403 assert(isPowerOf2_32(MaxIndex));
2405 Ops[1] = Builder.CreateAnd(Ops[1], MaxIndex - 1);
2434 unsigned MaxIndex = ResVecTy->getMinNumElements() / VecTy->getMinNumElements();
2435 assert(isPowerOf2_32(MaxIndex));
2437 Ops[1] = Builder.CreateAnd(Ops[1], MaxIndex - 1);
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DCodeGenSchedule.cpp290 int64_t MaxIndex = *std::max_element(Indices.begin(), Indices.end()); 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 DInterp.h1437 T MaxIndex = T::from(Ptr.getNumElems(), Offset.bitWidth()); in OffsetHelper() local
1450 << static_cast<unsigned>(MaxIndex); in OffsetHelper()
1454 T MaxOffset = T::from(MaxIndex - Index, Offset.bitWidth()); in OffsetHelper()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp5349 unsigned MaxIndex; in CheckRISCVBuiltinFunctionCall() local
5351 MaxIndex = VecInfo.NumVectors; in CheckRISCVBuiltinFunctionCall()
5353 MaxIndex = (VecInfo.EC.getKnownMinValue() * VecInfo.NumVectors) / in CheckRISCVBuiltinFunctionCall()
5355 return SemaBuiltinConstantArgRange(TheCall, 1, 0, MaxIndex - 1); in CheckRISCVBuiltinFunctionCall()
5364 unsigned MaxIndex; in CheckRISCVBuiltinFunctionCall() local
5366 MaxIndex = ResVecInfo.NumVectors; in CheckRISCVBuiltinFunctionCall()
5368 MaxIndex = (ResVecInfo.EC.getKnownMinValue() * ResVecInfo.NumVectors) / in CheckRISCVBuiltinFunctionCall()
5370 return SemaBuiltinConstantArgRange(TheCall, 1, 0, MaxIndex - 1); in CheckRISCVBuiltinFunctionCall()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp17253 const int64_t MaxIndex = 12; in EmitPPCBuiltinExpr() local
17254 int64_t Index = std::clamp(ArgCI->getSExtValue(), (int64_t)0, MaxIndex); in EmitPPCBuiltinExpr()
17273 Index = MaxIndex - Index; in EmitPPCBuiltinExpr()
17295 const int64_t MaxIndex = 12; in EmitPPCBuiltinExpr() local
17296 int64_t Index = std::clamp(ArgCI->getSExtValue(), (int64_t)0, MaxIndex); in EmitPPCBuiltinExpr()
17300 Index = MaxIndex - Index; in EmitPPCBuiltinExpr()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp23037 unsigned MaxIndex = 0; in reduceBuildVecToShuffle() local
23048 MaxIndex = std::max(MaxIndex, Index); in reduceBuildVecToShuffle()
23051 NearestPow2 = PowerOf2Ceil(MaxIndex); in reduceBuildVecToShuffle()
23052 if (InVT.isSimple() && NearestPow2 > 2 && MaxIndex < NearestPow2 && in reduceBuildVecToShuffle()
H A DTargetLowering.cpp9808 unsigned MaxIndex = NumSubElts < NElts ? NElts - NumSubElts : 0; in clampDynamicVectorIndex() local
9810 DAG.getConstant(MaxIndex, dl, IdxVT)); in clampDynamicVectorIndex()