Searched refs:MaxIndex (Results 1 – 9 of 9) sorted by relevance
| /freebsd-13.1/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | Types.cpp | 39 uint64_t MaxIndex = Size; in getMinimalTypeForEnumBitfield() local 40 if (MaxIndex > 0) in getMinimalTypeForEnumBitfield() 41 MaxIndex--; in getMinimalTypeForEnumBitfield() 42 assert(MaxIndex <= 64 && "Too many bits"); in getMinimalTypeForEnumBitfield() 43 return getMinimalTypeForRange(1ULL << MaxIndex); in getMinimalTypeForEnumBitfield()
|
| H A D | CodeGenSchedule.cpp | 273 int64_t MaxIndex = *std::max_element(Indices.begin(), Indices.end()); in constructOperandMask() local 274 assert(MaxIndex >= 0 && "Invalid negative indices in input!"); in constructOperandMask() 275 OperandMask = OperandMask.zext(MaxIndex + 1); in constructOperandMask()
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Attributes.cpp | 1095 unsigned MaxIndex = Attrs.back().first; in get() local 1098 if (MaxIndex == FunctionIndex && Attrs.size() > 1) in get() 1099 MaxIndex = Attrs[Attrs.size() - 2].first; in get() 1101 SmallVector<AttributeSet, 4> AttrVec(attrIdxToArrayIdx(MaxIndex) + 1); in get() 1275 unsigned MaxIndex = attrIdxToArrayIdx(ArgNos.back() + FirstArgIndex); in addParamAttribute() local 1276 if (MaxIndex >= AttrSets.size()) in addParamAttribute() 1277 AttrSets.resize(MaxIndex + 1); in addParamAttribute()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/ |
| H A D | AMDGPUBaseInfo.cpp | 1063 unsigned MaxIndex; member 1077 if (Val.Tgt <= Id && Id <= Val.Tgt + Val.MaxIndex) { in getTgtName() 1078 Index = (Val.MaxIndex == 0) ? -1 : (Id - Val.Tgt); in getTgtName() 1089 if (Val.MaxIndex == 0 && Name == Val.Name) in getTgtId() 1092 if (Val.MaxIndex > 0 && Name.startswith(Val.Name)) { in getTgtId() 1096 if (Suffix.getAsInteger(10, Id) || Id > Val.MaxIndex) in getTgtId()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | Interp.h | 741 unsigned MaxIndex = Ptr.getNumElems(); in OffsetHelper() local 752 << static_cast<unsigned>(MaxIndex); in OffsetHelper() 763 unsigned MaxOffset = MaxIndex - Ptr.getIndex(); in OffsetHelper()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGBuiltin.cpp | 15585 const int64_t MaxIndex = 12; in EmitPPCBuiltinExpr() local 15586 int64_t Index = clamp(ArgCI->getSExtValue(), 0, MaxIndex); in EmitPPCBuiltinExpr() 15607 Index = MaxIndex - Index; in EmitPPCBuiltinExpr() 15629 const int64_t MaxIndex = 12; in EmitPPCBuiltinExpr() local 15630 int64_t Index = clamp(ArgCI->getSExtValue(), 0, MaxIndex); in EmitPPCBuiltinExpr() 15634 Index = MaxIndex - Index; in EmitPPCBuiltinExpr()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 19498 unsigned MaxIndex = 0; in reduceBuildVecToShuffle() local 19509 MaxIndex = std::max(MaxIndex, Index); in reduceBuildVecToShuffle() 19512 NearestPow2 = PowerOf2Ceil(MaxIndex); in reduceBuildVecToShuffle() 19513 if (InVT.isSimple() && NearestPow2 > 2 && MaxIndex < NearestPow2 && in reduceBuildVecToShuffle()
|
| H A D | TargetLowering.cpp | 7831 unsigned MaxIndex = NumSubElts < NElts ? NElts - NumSubElts : 0; in clampDynamicVectorIndex() local 7833 DAG.getConstant(MaxIndex, dl, IdxVT)); in clampDynamicVectorIndex()
|