Lines Matching refs:dyn_cast
63 if (auto *GV = dyn_cast<GlobalValue>(C)) in isSimpleEnoughValueToCommitHelper()
124 if (auto *Agg = Val.dyn_cast<MutableAggregate *>()) in clear()
133 while (const auto *Agg = V->Val.dyn_cast<MutableAggregate *>()) { in read()
150 if (auto *VT = dyn_cast<FixedVectorType>(Ty)) { in makeMutable()
152 } else if (auto *AT = dyn_cast<ArrayType>(Ty)) in makeMutable()
154 else if (auto *ST = dyn_cast<StructType>(Ty)) in makeMutable()
205 if (auto *ST = dyn_cast<StructType>(Ty)) in toConstant()
207 if (auto *AT = dyn_cast<ArrayType>(Ty)) in toConstant()
220 if (auto *GV = dyn_cast<GlobalVariable>(P)) in ComputeLoadResult()
237 if (auto *Fn = dyn_cast<Function>(C)) in getFunction()
240 if (auto *Alias = dyn_cast<GlobalAlias>(C)) in getFunction()
241 if (auto *Fn = dyn_cast<Function>(Alias->getAliasee())) in getFunction()
303 if (StoreInst *SI = dyn_cast<StoreInst>(CurInst)) { in EvaluateBlock()
320 auto *GV = dyn_cast<GlobalVariable>(Ptr); in EvaluateBlock()
339 } else if (LoadInst *LI = dyn_cast<LoadInst>(CurInst)) { in EvaluateBlock()
363 } else if (AllocaInst *AI = dyn_cast<AllocaInst>(CurInst)) { in EvaluateBlock()
391 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(&CB)) { in EvaluateBlock()
392 if (MemSetInst *MSI = dyn_cast<MemSetInst>(II)) { in EvaluateBlock()
399 auto *LenC = dyn_cast<ConstantInt>(getVal(MSI->getLength())); in EvaluateBlock()
409 auto *GV = dyn_cast<GlobalVariable>(Ptr); in EvaluateBlock()
450 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(Ptr)) { in EvaluateBlock()
552 if (BranchInst *BI = dyn_cast<BranchInst>(CurInst)) { in EvaluateBlock()
557 dyn_cast<ConstantInt>(getVal(BI->getCondition())); in EvaluateBlock()
562 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(CurInst)) { in EvaluateBlock()
564 dyn_cast<ConstantInt>(getVal(SI->getCondition())); in EvaluateBlock()
567 } else if (IndirectBrInst *IBI = dyn_cast<IndirectBrInst>(CurInst)) { in EvaluateBlock()
569 if (BlockAddress *BA = dyn_cast<BlockAddress>(Val)) in EvaluateBlock()
603 if (InvokeInst *II = dyn_cast<InvokeInst>(CurInst)) { in EvaluateBlock()
684 (PN = dyn_cast<PHINode>(CurInst)); ++CurInst) in EvaluateFunction()