Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/utils/TableGen/
H A DTypes.cpp39 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 DCodeGenSchedule.cpp272 int64_t MaxIndex = *std::max_element(Indices.begin(), Indices.end()); in constructOperandMask() local
273 assert(MaxIndex >= 0 && "Invalid negative indices in input!"); in constructOperandMask()
274 OperandMask = OperandMask.zext(MaxIndex + 1); in constructOperandMask()
/llvm-project-15.0.7/bolt/test/X86/
H A Dcmov-conversion.s12 # CHECK: BOLT-INFO: CMOVConversion: MaxIndex, converted static 1/1
117 .globl MaxIndex # -- Begin function MaxIndex
119 .type MaxIndex,@function
120 MaxIndex: # @MaxIndex label
122 # FDATA: 0 [unknown] 0 1 MaxIndex 0 1 2
132 # FDATA: 0 [unknown] 0 1 MaxIndex #LBB2_2# 1 2
142 # FDATA: 1 MaxIndex #LBB2_2_br# 1 MaxIndex #LBB2_3# 1 2
143 # FDATA: 1 MaxIndex #LBB2_2_br# 1 MaxIndex #LBB2_4# 1 2
155 .size MaxIndex, Lfunc_end2-MaxIndex
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DMisExpect.cpp167 size_t MaxIndex = 0; in verifyMisExpect() local
172 MaxIndex = Idx; in verifyMisExpect()
179 const uint64_t ProfiledWeight = RealWeights[MaxIndex]; in verifyMisExpect()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/IR/
H A DAttributes.cpp1097 unsigned MaxIndex = Attrs.back().first; in get() local
1100 if (MaxIndex == FunctionIndex && Attrs.size() > 1) in get()
1101 MaxIndex = Attrs[Attrs.size() - 2].first; in get()
1103 SmallVector<AttributeSet, 4> AttrVec(attrIdxToArrayIdx(MaxIndex) + 1); in get()
1277 unsigned MaxIndex = attrIdxToArrayIdx(ArgNos.back() + FirstArgIndex); in addParamAttribute() local
1278 if (MaxIndex >= AttrSets.size()) in addParamAttribute()
1279 AttrSets.resize(MaxIndex + 1); in addParamAttribute()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUBaseInfo.cpp1349 unsigned MaxIndex; member
1364 if (Val.Tgt <= Id && Id <= Val.Tgt + Val.MaxIndex) { in getTgtName()
1365 Index = (Val.MaxIndex == 0) ? -1 : (Id - Val.Tgt); in getTgtName()
1376 if (Val.MaxIndex == 0 && Name == Val.Name) in getTgtId()
1379 if (Val.MaxIndex > 0 && Name.startswith(Val.Name)) { in getTgtId()
1383 if (Suffix.getAsInteger(10, Id) || Id > Val.MaxIndex) in getTgtId()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DInterp.h742 unsigned MaxIndex = Ptr.getNumElems(); in OffsetHelper() local
753 << static_cast<unsigned>(MaxIndex); in OffsetHelper()
764 unsigned MaxOffset = MaxIndex - Ptr.getIndex(); in OffsetHelper()
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dx86-cmov-converter.ll17 ;; 3. MaxIndex:
56 ;;int MaxIndex(int n, int *a) {
275 define i32 @MaxIndex(i32 %n, ptr nocapture readonly %a) #0 {
276 ; CHECK-LABEL: MaxIndex:
304 ; CHECK-FORCEALL-LABEL: MaxIndex:
/llvm-project-15.0.7/clang/include/clang/Basic/
H A Driscv_vector.td2202 unsigned MaxIndex = OpVecTy->getMinNumElements() / VecTy->getMinNumElements();
2203 assert(isPowerOf2_32(MaxIndex));
2205 Ops[1] = Builder.CreateAnd(Ops[1], MaxIndex - 1);
2227 unsigned MaxIndex = ResVecTy->getMinNumElements() / VecTy->getMinNumElements();
2228 assert(isPowerOf2_32(MaxIndex));
2230 Ops[1] = Builder.CreateAnd(Ops[1], MaxIndex - 1);
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaChecking.cpp4415 unsigned MaxIndex = in CheckRISCVBuiltinFunctionCall() local
4418 return SemaBuiltinConstantArgRange(TheCall, 1, 0, MaxIndex - 1); in CheckRISCVBuiltinFunctionCall()
4427 unsigned MaxIndex = in CheckRISCVBuiltinFunctionCall() local
4430 return SemaBuiltinConstantArgRange(TheCall, 1, 0, MaxIndex - 1); in CheckRISCVBuiltinFunctionCall()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGBuiltin.cpp15978 const int64_t MaxIndex = 12; in EmitPPCBuiltinExpr() local
15979 int64_t Index = clamp(ArgCI->getSExtValue(), 0, MaxIndex); in EmitPPCBuiltinExpr()
15998 Index = MaxIndex - Index; in EmitPPCBuiltinExpr()
16020 const int64_t MaxIndex = 12; in EmitPPCBuiltinExpr() local
16021 int64_t Index = clamp(ArgCI->getSExtValue(), 0, MaxIndex); in EmitPPCBuiltinExpr()
16025 Index = MaxIndex - Index; in EmitPPCBuiltinExpr()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp20557 unsigned MaxIndex = 0; in reduceBuildVecToShuffle() local
20568 MaxIndex = std::max(MaxIndex, Index); in reduceBuildVecToShuffle()
20571 NearestPow2 = PowerOf2Ceil(MaxIndex); in reduceBuildVecToShuffle()
20572 if (InVT.isSimple() && NearestPow2 > 2 && MaxIndex < NearestPow2 && in reduceBuildVecToShuffle()
H A DTargetLowering.cpp8710 unsigned MaxIndex = NumSubElts < NElts ? NElts - NumSubElts : 0; in clampDynamicVectorIndex() local
8712 DAG.getConstant(MaxIndex, dl, IdxVT)); in clampDynamicVectorIndex()