Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/utils/TableGen/
H A DTypes.cpp40 uint64_t MaxIndex = Size; in getMinimalTypeForEnumBitfield() local
41 if (MaxIndex > 0) in getMinimalTypeForEnumBitfield()
42 MaxIndex--; in getMinimalTypeForEnumBitfield()
43 assert(MaxIndex <= 64 && "Too many bits"); in getMinimalTypeForEnumBitfield()
44 return getMinimalTypeForRange(1ULL << MaxIndex); in getMinimalTypeForEnumBitfield()
H A DCodeGenSchedule.cpp275 int64_t MaxIndex = *std::max_element(Indices.begin(), Indices.end()); in constructOperandMask() local
276 assert(MaxIndex >= 0 && "Invalid negative indices in input!"); in constructOperandMask()
277 OperandMask = OperandMask.zext(MaxIndex + 1); in constructOperandMask()
/freebsd-12.1/contrib/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-12.1/contrib/llvm/lib/IR/
H A DAttributes.cpp927 unsigned MaxIndex = Attrs.back().first; in get() local
930 if (MaxIndex == FunctionIndex && Attrs.size() > 1) in get()
931 MaxIndex = Attrs[Attrs.size() - 2].first; in get()
933 SmallVector<AttributeSet, 4> AttrVec(attrIdxToArrayIdx(MaxIndex) + 1); in get()
1091 unsigned MaxIndex = attrIdxToArrayIdx(ArgNos.back() + FirstArgIndex); in addParamAttribute() local
1092 if (MaxIndex >= AttrSets.size()) in addParamAttribute()
1093 AttrSets.resize(MaxIndex + 1); in addParamAttribute()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGBuiltin.cpp11826 const int64_t MaxIndex = 12; in EmitPPCBuiltinExpr() local
11827 int64_t Index = clamp(ArgCI->getSExtValue(), 0, MaxIndex); in EmitPPCBuiltinExpr()
11852 Index = MaxIndex - Index; in EmitPPCBuiltinExpr()
11872 const int64_t MaxIndex = 12; in EmitPPCBuiltinExpr() local
11873 int64_t Index = clamp(ArgCI->getSExtValue(), 0, MaxIndex); in EmitPPCBuiltinExpr()
11877 Index = MaxIndex - Index; in EmitPPCBuiltinExpr()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp16354 unsigned MaxIndex = 0; in reduceBuildVecToShuffle() local
16366 MaxIndex = std::max(MaxIndex, Index); in reduceBuildVecToShuffle()
16369 NearestPow2 = PowerOf2Ceil(MaxIndex); in reduceBuildVecToShuffle()
16370 if (InVT.isSimple() && NearestPow2 > 2 && MaxIndex < NearestPow2 && in reduceBuildVecToShuffle()