• Home
  • Raw
  • Download

Lines Matching refs:UndefValue

511   if (isa<UndefValue>(V)) {  in ConstantFoldCastInstruction()
518 return UndefValue::get(DestTy); in ConstantFoldCastInstruction()
718 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
719 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction()
722 if (isa<UndefValue>(V1)) return V2; in ConstantFoldSelectInstruction()
723 if (isa<UndefValue>(V2)) return V1; in ConstantFoldSelectInstruction()
742 if (isa<UndefValue>(Val)) // ee(undef, x) -> undef in ConstantFoldExtractElementInstruction()
743 return UndefValue::get(Val->getType()->getVectorElementType()); in ConstantFoldExtractElementInstruction()
747 if (isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction()
748 return UndefValue::get(Val->getType()->getVectorElementType()); in ConstantFoldExtractElementInstruction()
754 return UndefValue::get(Val->getType()->getVectorElementType()); in ConstantFoldExtractElementInstruction()
790 if (isa<UndefValue>(Mask)) in ConstantFoldShuffleVectorInstruction()
791 return UndefValue::get(VectorType::get(EltTy, MaskNumElts)); in ConstantFoldShuffleVectorInstruction()
803 Result.push_back(UndefValue::get(EltTy)); in ConstantFoldShuffleVectorInstruction()
808 InElt = UndefValue::get(EltTy); in ConstantFoldShuffleVectorInstruction()
873 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) { in ConstantFoldBinaryInstruction()
876 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
883 return UndefValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
885 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef in ConstantFoldBinaryInstruction()
893 (isa<UndefValue>(C1) && isa<UndefValue>(C2))) in ConstantFoldBinaryInstruction()
894 return UndefValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
909 if (!isa<UndefValue>(C2)) // undef / X -> 0 in ConstantFoldBinaryInstruction()
913 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef in ConstantFoldBinaryInstruction()
917 if (isa<UndefValue>(C2) && isa<UndefValue>(C1)) in ConstantFoldBinaryInstruction()
922 if (!isa<UndefValue>(C2)) // undef ashr X --> all ones in ConstantFoldBinaryInstruction()
924 else if (isa<UndefValue>(C1)) in ConstantFoldBinaryInstruction()
929 if (isa<UndefValue>(C2) && isa<UndefValue>(C1)) in ConstantFoldBinaryInstruction()
955 return UndefValue::get(CI2->getType()); // X / 0 == undef in ConstantFoldBinaryInstruction()
962 return UndefValue::get(CI2->getType()); // X % 0 == undef in ConstantFoldBinaryInstruction()
1057 return UndefValue::get(CI1->getType()); // MIN_INT / -1 -> undef in ConstantFoldBinaryInstruction()
1065 return UndefValue::get(CI1->getType()); // MIN_INT % -1 -> undef in ConstantFoldBinaryInstruction()
1078 return UndefValue::get(C1->getType()); // too big shift is undef in ConstantFoldBinaryInstruction()
1085 return UndefValue::get(C1->getType()); // too big shift is undef in ConstantFoldBinaryInstruction()
1092 return UndefValue::get(C1->getType()); // too big shift is undef in ConstantFoldBinaryInstruction()
1586 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) { in ConstantFoldCompareInstruction()
1591 (isa<UndefValue>(C1) && isa<UndefValue>(C2))) in ConstantFoldCompareInstruction()
1592 return UndefValue::get(ResultTy); in ConstantFoldCompareInstruction()
1908 if (isa<UndefValue>(C)) { in ConstantFoldGetElementPtrImpl()
1912 return UndefValue::get(PointerType::get(Ty, Ptr->getAddressSpace())); in ConstantFoldGetElementPtrImpl()