Lines Matching refs:CIdx
623 auto *CIdx = dyn_cast<ConstantInt>(Idx); in ConstantFoldExtractElementInstruction() local
624 if (!CIdx) in ConstantFoldExtractElementInstruction()
629 if (CIdx->uge(ValFVTy->getNumElements())) in ConstantFoldExtractElementInstruction()
653 APSInt(CIdx->getValue()))) { in ConstantFoldExtractElementInstruction()
656 return ConstantExpr::getExtractElement(CE->getOperand(0), CIdx); in ConstantFoldExtractElementInstruction()
662 if (Constant *C = Val->getAggregateElement(CIdx)) in ConstantFoldExtractElementInstruction()
666 if (CIdx->getValue().ult(ValVTy->getElementCount().getKnownMinValue())) { in ConstantFoldExtractElementInstruction()
685 ConstantInt *CIdx = dyn_cast<ConstantInt>(Idx); in ConstantFoldInsertElementInstruction() local
686 if (!CIdx) return nullptr; in ConstantFoldInsertElementInstruction()
696 if (CIdx->uge(NumElts)) in ConstantFoldInsertElementInstruction()
702 uint64_t IdxVal = CIdx->getZExtValue(); in ConstantFoldInsertElementInstruction()