Lines Matching refs:dyn_cast
127 const Instruction *User = dyn_cast<Instruction>(*UI); in isUsedInBasicBlock()
140 if (Instruction *I = dyn_cast<Instruction>(V)) { in getSymTab()
144 } else if (BasicBlock *BB = dyn_cast<BasicBlock>(V)) { in getSymTab()
147 } else if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) { in getSymTab()
150 } else if (Argument *A = dyn_cast<Argument>(V)) { in getSymTab()
190 if (Function *F = dyn_cast<Function>(this)) in setName()
294 auto *CE = dyn_cast<ConstantExpr>(O); in contains()
307 auto *C = dyn_cast<Constant>(V); in contains()
311 auto *CE = dyn_cast<ConstantExpr>(Expr); in contains()
337 if (auto *C = dyn_cast<Constant>(U.getUser())) { in replaceAllUsesWith()
347 if (BasicBlock *BB = dyn_cast<BasicBlock>(this)) in replaceAllUsesWith()
365 auto *Usr = dyn_cast<Instruction>(U.getUser()); in replaceUsesOutsideBlock()
393 if (GEPOperator *GEP = dyn_cast<GEPOperator>(V)) { in stripPointerCastsAndOffsets()
413 } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) { in stripPointerCastsAndOffsets()
454 if (GEPOperator *GEP = dyn_cast<GEPOperator>(V)) { in stripAndAccumulateInBoundsConstantOffsets()
465 } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) { in stripAndAccumulateInBoundsConstantOffsets()
499 if (const BitCastOperator *BC = dyn_cast<BitCastOperator>(V)) { in isDereferenceablePointer()
509 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V)) in isDereferenceablePointer()
514 if (const Argument *A = dyn_cast<Argument>(V)) { in isDereferenceablePointer()
537 if (const GEPOperator *GEP = dyn_cast<GEPOperator>(V)) { in isDereferenceablePointer()
552 ConstantInt *CI = dyn_cast<ConstantInt>(Index); in isDereferenceablePointer()
559 ArrayType *ATy = dyn_cast<ArrayType>(Ty); in isDereferenceablePointer()
572 if (const IntrinsicInst *I = dyn_cast<IntrinsicInst>(V)) in isDereferenceablePointer()
578 if (const AddrSpaceCastInst *ASC = dyn_cast<AddrSpaceCastInst>(V)) in isDereferenceablePointer()
596 if (const Argument *A = dyn_cast<Argument>(BV)) in isDereferenceablePointer()
613 PHINode *PN = dyn_cast<PHINode>(this); in DoPHITranslation()