• Home
  • Raw
  • Download

Lines Matching refs:UndefValue

524   if (isa<UndefValue>(V)) {  in ConstantFoldCastInstruction()
531 return UndefValue::get(DestTy); in ConstantFoldCastInstruction()
614 return UndefValue::get(DestTy); in ConstantFoldCastInstruction()
679 return UndefValue::get(DestTy); in ConstantFoldCastInstruction()
744 } else if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
745 V = isa<UndefValue>(V1Element) ? V1Element : V2Element; in ConstantFoldSelectInstruction()
758 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
759 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction()
762 if (isa<UndefValue>(V1)) return V2; in ConstantFoldSelectInstruction()
763 if (isa<UndefValue>(V2)) return V1; in ConstantFoldSelectInstruction()
782 if (isa<UndefValue>(Val)) // ee(undef, x) -> undef in ConstantFoldExtractElementInstruction()
783 return UndefValue::get(Val->getType()->getVectorElementType()); in ConstantFoldExtractElementInstruction()
787 if (isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction()
788 return UndefValue::get(Val->getType()->getVectorElementType()); in ConstantFoldExtractElementInstruction()
793 return UndefValue::get(Val->getType()->getVectorElementType()); in ConstantFoldExtractElementInstruction()
802 if (isa<UndefValue>(Idx)) in ConstantFoldInsertElementInstruction()
803 return UndefValue::get(Val->getType()); in ConstantFoldInsertElementInstruction()
810 return UndefValue::get(Val->getType()); in ConstantFoldInsertElementInstruction()
836 if (isa<UndefValue>(Mask)) in ConstantFoldShuffleVectorInstruction()
837 return UndefValue::get(VectorType::get(EltTy, MaskNumElts)); in ConstantFoldShuffleVectorInstruction()
849 Result.push_back(UndefValue::get(EltTy)); in ConstantFoldShuffleVectorInstruction()
854 InElt = UndefValue::get(EltTy); in ConstantFoldShuffleVectorInstruction()
921 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) { in ConstantFoldBinaryInstruction()
924 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
931 return UndefValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
933 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef in ConstantFoldBinaryInstruction()
938 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
944 return UndefValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
952 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
971 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef in ConstantFoldBinaryInstruction()
976 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
985 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
995 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
1015 assert(!isa<UndefValue>(C1) && !isa<UndefValue>(C2) && in ConstantFoldBinaryInstruction()
1037 return UndefValue::get(CI2->getType()); // X / 0 == undef in ConstantFoldBinaryInstruction()
1044 return UndefValue::get(CI2->getType()); // X % 0 == undef in ConstantFoldBinaryInstruction()
1138 return UndefValue::get(CI1->getType()); // MIN_INT / -1 -> undef in ConstantFoldBinaryInstruction()
1146 return UndefValue::get(CI1->getType()); // MIN_INT % -1 -> undef in ConstantFoldBinaryInstruction()
1157 return UndefValue::get(C1->getType()); // too big shift is undef in ConstantFoldBinaryInstruction()
1161 return UndefValue::get(C1->getType()); // too big shift is undef in ConstantFoldBinaryInstruction()
1165 return UndefValue::get(C1->getType()); // too big shift is undef in ConstantFoldBinaryInstruction()
1693 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) { in ConstantFoldCompareInstruction()
1700 return UndefValue::get(ResultTy); in ConstantFoldCompareInstruction()
2058 if (isa<UndefValue>(C)) { in ConstantFoldGetElementPtrImpl()
2065 return UndefValue::get(GEPTy); in ConstantFoldGetElementPtrImpl()