Lines Matching refs:CIdx
426 auto *CIdx = dyn_cast<ConstantInt>(Idx); in ConstantFoldExtractElementInstruction() local
427 if (!CIdx) in ConstantFoldExtractElementInstruction()
432 if (CIdx->uge(ValFVTy->getNumElements())) in ConstantFoldExtractElementInstruction()
456 APSInt(CIdx->getValue()))) { in ConstantFoldExtractElementInstruction()
459 return ConstantExpr::getExtractElement(CE->getOperand(0), CIdx); in ConstantFoldExtractElementInstruction()
465 if (Constant *C = Val->getAggregateElement(CIdx)) in ConstantFoldExtractElementInstruction()
469 if (CIdx->getValue().ult(ValVTy->getElementCount().getKnownMinValue())) { in ConstantFoldExtractElementInstruction()
488 ConstantInt *CIdx = dyn_cast<ConstantInt>(Idx); in ConstantFoldInsertElementInstruction() local
489 if (!CIdx) return nullptr; in ConstantFoldInsertElementInstruction()
499 if (CIdx->uge(NumElts)) in ConstantFoldInsertElementInstruction()
505 uint64_t IdxVal = CIdx->getZExtValue(); in ConstantFoldInsertElementInstruction()