Lines Matching refs:Elt

478                                                      Constant *Elt,  in ConstantFoldInsertElementInstruction()  argument
485 if (isa<ConstantAggregateZero>(Val) && Elt->isNullValue()) in ConstantFoldInsertElementInstruction()
508 Result.push_back(Elt); in ConstantFoldInsertElementInstruction()
528 if (all_of(Mask, [](int Elt) { return Elt == PoisonMaskElem; })) { in ConstantFoldShuffleVectorInstruction() argument
534 if (all_of(Mask, [](int Elt) { return Elt == 0; })) { in ConstantFoldShuffleVectorInstruction() argument
536 Constant *Elt = in ConstantFoldShuffleVectorInstruction() local
539 if (Elt->isNullValue()) { in ConstantFoldShuffleVectorInstruction()
543 return ConstantVector::getSplat(MaskEltCount, Elt); in ConstantFoldShuffleVectorInstruction()
555 int Elt = Mask[i]; in ConstantFoldShuffleVectorInstruction() local
556 if (Elt == -1) { in ConstantFoldShuffleVectorInstruction()
561 if (unsigned(Elt) >= SrcNumElts*2) in ConstantFoldShuffleVectorInstruction() local
563 else if (unsigned(Elt) >= SrcNumElts) { in ConstantFoldShuffleVectorInstruction() local
567 ConstantInt::get(Ty, Elt - SrcNumElts)); in ConstantFoldShuffleVectorInstruction()
570 InElt = ConstantExpr::getExtractElement(V1, ConstantInt::get(Ty, Elt)); in ConstantFoldShuffleVectorInstruction()
655 if (Constant *Elt = ConstantFoldUnaryInstruction(Opcode, Splat)) in ConstantFoldUnaryInstruction() local
656 return ConstantVector::getSplat(VTy->getElementCount(), Elt); in ConstantFoldUnaryInstruction()
662 Constant *Elt = ConstantExpr::getExtractElement(C, ExtractIdx); in ConstantFoldUnaryInstruction() local
663 Constant *Res = ConstantFoldUnaryInstruction(Opcode, Elt); in ConstantFoldUnaryInstruction()