Lines Matching refs:CIdx
358 auto *CIdx = dyn_cast<ConstantInt>(Idx); in ConstantFoldExtractElementInstruction() local
359 if (!CIdx) in ConstantFoldExtractElementInstruction()
364 if (CIdx->uge(ValFVTy->getNumElements())) in ConstantFoldExtractElementInstruction()
388 APSInt(CIdx->getValue()))) { in ConstantFoldExtractElementInstruction()
391 return ConstantExpr::getExtractElement(CE->getOperand(0), CIdx); in ConstantFoldExtractElementInstruction()
397 if (Constant *C = Val->getAggregateElement(CIdx)) in ConstantFoldExtractElementInstruction()
401 if (CIdx->getValue().ult(ValVTy->getElementCount().getKnownMinValue())) { in ConstantFoldExtractElementInstruction()
420 ConstantInt *CIdx = dyn_cast<ConstantInt>(Idx); in ConstantFoldInsertElementInstruction() local
421 if (!CIdx) return nullptr; in ConstantFoldInsertElementInstruction()
431 if (CIdx->uge(NumElts)) in ConstantFoldInsertElementInstruction()
437 uint64_t IdxVal = CIdx->getZExtValue(); in ConstantFoldInsertElementInstruction()