Lines Matching refs:Elt
675 Constant *Elt, in ConstantFoldInsertElementInstruction() argument
682 if (isa<ConstantAggregateZero>(Val) && Elt->isNullValue()) in ConstantFoldInsertElementInstruction()
705 Result.push_back(Elt); in ConstantFoldInsertElementInstruction()
725 if (all_of(Mask, [](int Elt) { return Elt == UndefMaskElem; })) { in ConstantFoldShuffleVectorInstruction() argument
731 if (all_of(Mask, [](int Elt) { return Elt == 0; })) { in ConstantFoldShuffleVectorInstruction() argument
733 Constant *Elt = in ConstantFoldShuffleVectorInstruction() local
736 if (Elt->isNullValue()) { in ConstantFoldShuffleVectorInstruction()
740 return ConstantVector::getSplat(MaskEltCount, Elt); in ConstantFoldShuffleVectorInstruction()
752 int Elt = Mask[i]; in ConstantFoldShuffleVectorInstruction() local
753 if (Elt == -1) { in ConstantFoldShuffleVectorInstruction()
758 if (unsigned(Elt) >= SrcNumElts*2) in ConstantFoldShuffleVectorInstruction() local
760 else if (unsigned(Elt) >= SrcNumElts) { in ConstantFoldShuffleVectorInstruction() local
764 ConstantInt::get(Ty, Elt - SrcNumElts)); in ConstantFoldShuffleVectorInstruction()
767 InElt = ConstantExpr::getExtractElement(V1, ConstantInt::get(Ty, Elt)); in ConstantFoldShuffleVectorInstruction()
852 Constant *Elt = ConstantExpr::get(Opcode, Splat); in ConstantFoldUnaryInstruction() local
853 return ConstantVector::getSplat(VTy->getElementCount(), Elt); in ConstantFoldUnaryInstruction()
860 Constant *Elt = ConstantExpr::getExtractElement(C, ExtractIdx); in ConstantFoldUnaryInstruction() local
862 Result.push_back(ConstantExpr::get(Opcode, Elt)); in ConstantFoldUnaryInstruction()