Lines Matching full:isa
84 if (isa<ConstantInt>(V) || isa<ConstantFP>(V)) in FoldBitCast()
132 if (isa<PoisonValue>(V)) in ConstantFoldCastInstruction()
135 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction()
162 if ((isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) && in ConstantFoldCastInstruction()
285 if (isa<PoisonValue>(Cond)) { in ConstantFoldSelectInstruction()
289 } else if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
290 V = isa<UndefValue>(V1Element) ? V1Element : V2Element; in ConstantFoldSelectInstruction()
292 if (!isa<ConstantInt>(Cond)) break; in ConstantFoldSelectInstruction()
303 if (isa<PoisonValue>(Cond)) in ConstantFoldSelectInstruction()
306 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
307 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction()
313 if (isa<PoisonValue>(V1)) in ConstantFoldSelectInstruction()
315 if (isa<PoisonValue>(V2)) in ConstantFoldSelectInstruction()
321 if (isa<PoisonValue>(C)) in ConstantFoldSelectInstruction()
326 if (isa<ConstantExpr>(C)) in ConstantFoldSelectInstruction()
329 if (isa<ConstantInt>(C) || isa<GlobalVariable>(C) || isa<ConstantFP>(C) || in ConstantFoldSelectInstruction()
330 isa<ConstantPointerNull>(C) || isa<Function>(C)) in ConstantFoldSelectInstruction()
339 if (isa<UndefValue>(V1) && NotPoison(V2)) return V2; in ConstantFoldSelectInstruction()
340 if (isa<UndefValue>(V2) && NotPoison(V1)) return V1; in ConstantFoldSelectInstruction()
351 if (isa<PoisonValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction()
355 if (isa<UndefValue>(Val)) in ConstantFoldExtractElementInstruction()
412 if (isa<UndefValue>(Idx)) in ConstantFoldInsertElementInstruction()
417 if (isa<ConstantAggregateZero>(Val) && Elt->isNullValue()) in ConstantFoldInsertElementInstruction()
425 if (isa<ScalableVectorType>(Val->getType())) in ConstantFoldInsertElementInstruction()
456 ElementCount::get(MaskNumElts, isa<ScalableVectorType>(V1VTy)); in ConstantFoldShuffleVectorInstruction()
480 if (isa<ScalableVectorType>(V1VTy)) in ConstantFoldShuffleVectorInstruction()
557 bool IsScalableVector = isa<ScalableVectorType>(C->getType()); in ConstantFoldUnaryInstruction()
559 (!C->getType()->isVectorTy() || IsScalableVector) && isa<UndefValue>(C); in ConstantFoldUnaryInstruction()
573 assert(!isa<ConstantInt>(C) && "Unexpected Integer UnaryOp"); in ConstantFoldUnaryInstruction()
628 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldBinaryInstruction()
633 bool IsScalableVector = isa<ScalableVectorType>(C1->getType()); in ConstantFoldBinaryInstruction()
636 (isa<UndefValue>(C1) || isa<UndefValue>(C2)); in ConstantFoldBinaryInstruction()
640 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
649 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef in ConstantFoldBinaryInstruction()
654 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
682 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef in ConstantFoldBinaryInstruction()
687 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
693 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
700 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
706 if (match(C1, m_NegZeroFP()) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
714 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
758 isa<GlobalValue>(CE1->getOperand(0))) { in ConstantFoldBinaryInstruction()
776 if (isa<Function>(GV) && !DL.getFunctionPtrAlign()) in ConstantFoldBinaryInstruction()
778 } else if (isa<GlobalVariable>(GV)) { in ConstantFoldBinaryInstruction()
799 } else if (isa<ConstantInt>(C1)) { in ConstantFoldBinaryInstruction()
945 if (!isa<ConstantExpr>(T) || cast<ConstantExpr>(T)->getOpcode() != Opcode) in ConstantFoldBinaryInstruction()
948 } else if (isa<ConstantExpr>(C2)) { in ConstantFoldBinaryInstruction()
1004 if (!isa<GlobalAlias>(GV1) && !isa<GlobalAlias>(GV2)) in areGlobalsPotentiallyEqual()
1030 if (isa<ConstantExpr>(V)) in evaluateICmpRelation()
1032 if (isa<GlobalValue>(V)) in evaluateICmpRelation()
1034 if (isa<BlockAddress>(V)) in evaluateICmpRelation()
1053 } else if (isa<ConstantPointerNull>(V2)) { in evaluateICmpRelation()
1061 } else if (isa<BlockAddress>(V2)) { in evaluateICmpRelation()
1063 } else if (isa<ConstantPointerNull>(V2)) { in evaluateICmpRelation()
1069 if (!GV->hasExternalWeakLinkage() && !isa<GlobalAlias>(GV) && in evaluateICmpRelation()
1084 if (isa<ConstantPointerNull>(V2)) { in evaluateICmpRelation()
1105 if (isa<GlobalValue>(CE1Op0) && isa<GlobalValue>(CE2Op0)) { in evaluateICmpRelation()
1142 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldCompareInstruction()
1145 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) { in ConstantFoldCompareInstruction()
1178 if (isa<ConstantInt>(C2)) in ConstantFoldCompareInstruction()
1188 if (isa<ConstantInt>(C1) && isa<ConstantInt>(C2)) { in ConstantFoldCompareInstruction()
1192 } else if (isa<ConstantFP>(C1) && isa<ConstantFP>(C2)) { in ConstantFoldCompareInstruction()
1207 if (isa<ScalableVectorType>(C1VTy)) in ConstantFoldCompareInstruction()
1327 if ((!isa<ConstantExpr>(C1) && isa<ConstantExpr>(C2)) || in ConstantFoldCompareInstruction()
1347 if (isa<PoisonValue>(C)) in ConstantFoldGetElementPtr()
1350 if (isa<UndefValue>(C)) in ConstantFoldGetElementPtr()
1360 return IdxC->isNullValue() || isa<UndefValue>(IdxC); in ConstantFoldGetElementPtr()