Lines Matching full:dyn_cast
358 if (VectorType *VInTy = dyn_cast<VectorType>(In)) {
481 if (LoadInst *LI = dyn_cast<LoadInst>(User)) {
493 if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
504 if (BitCastInst *BCI = dyn_cast<BitCastInst>(User)) {
511 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(User)) {
530 if (MemSetInst *MSI = dyn_cast<MemSetInst>(User)) {
536 ConstantInt *Len = dyn_cast<ConstantInt>(MSI->getLength());
554 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(User)) {
555 ConstantInt *Len = dyn_cast<ConstantInt>(MTI->getLength());
582 if (BitCastInst *CI = dyn_cast<BitCastInst>(User)) {
588 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(User)) {
600 if (LoadInst *LI = dyn_cast<LoadInst>(User)) {
610 if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
627 if (MemSetInst *MSI = dyn_cast<MemSetInst>(User)) {
658 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(User)) {
787 if (VectorType *VTy = dyn_cast<VectorType>(FromType)) {
840 if (StructType *ST = dyn_cast<StructType>(ToType)) {
852 if (ArrayType *AT = dyn_cast<ArrayType>(ToType)) {
933 if (VectorType *VTy = dyn_cast<VectorType>(AllocaType)) {
985 if (StructType *ST = dyn_cast<StructType>(SV->getType())) {
996 if (ArrayType *AT = dyn_cast<ArrayType>(SV->getType())) {
1112 if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(*UI))
1114 else if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(*UI))
1133 if (LoadInst *LI = dyn_cast<LoadInst>(I))
1142 if (StoreInst *SI = dyn_cast<StoreInst>(Inst))
1144 else if (LoadInst *LI = dyn_cast<LoadInst>(Inst))
1150 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
1155 if (ZExtInst *ZExt = dyn_cast<ZExtInst>(SI->getOperand(0)))
1156 ExtendedArg = dyn_cast<Argument>(ZExt->getOperand(0));
1157 if (SExtInst *SExt = dyn_cast<SExtInst>(SI->getOperand(0)))
1158 ExtendedArg = dyn_cast<Argument>(SExt->getOperand(0));
1168 } else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
1198 LoadInst *LI = dyn_cast<LoadInst>(*UI);
1239 LoadInst *LI = dyn_cast<LoadInst>(*UI);
1269 if (InvokeInst *II = dyn_cast<InvokeInst>(InVal))
1297 if (LoadInst *LI = dyn_cast<LoadInst>(U)) {
1303 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
1309 if (SelectInst *SI = dyn_cast<SelectInst>(U)) {
1312 if (ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition())) {
1331 if (PHINode *PN = dyn_cast<PHINode>(U)) {
1357 if (SelectInst *SI = dyn_cast<SelectInst>(InstsToRewrite[i])) {
1454 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca?
1488 if (StructType *ST = dyn_cast<StructType>(T))
1492 if (ArrayType *AT = dyn_cast<ArrayType>(T))
1508 if (AllocaInst *A = dyn_cast<AllocaInst>(I))
1597 if (StructType *ST = dyn_cast<StructType>(AI->getAllocatedType())) {
1636 if (Instruction *U = dyn_cast<Instruction>(*OI)) {
1658 if (BitCastInst *BC = dyn_cast<BitCastInst>(User)) {
1660 } else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(User)) {
1665 } else if (MemIntrinsic *MI = dyn_cast<MemIntrinsic>(User)) {
1666 ConstantInt *Length = dyn_cast<ConstantInt>(MI->getLength());
1672 } else if (LoadInst *LI = dyn_cast<LoadInst>(User)) {
1680 } else if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
1711 if (PHINode *PN = dyn_cast<PHINode>(I))
1718 if (BitCastInst *BC = dyn_cast<BitCastInst>(User)) {
1720 } else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(User)) {
1727 } else if (LoadInst *LI = dyn_cast<LoadInst>(User)) {
1735 } else if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
1771 ConstantInt *IdxVal = dyn_cast<ConstantInt>(GEPIt.getOperand());
1790 if (ArrayType *AT = dyn_cast<ArrayType>(T)) {
1795 if (StructType *ST = dyn_cast<StructType>(T)) {
1873 if (StructType *ST = dyn_cast<StructType>(T)) {
1879 } else if (ArrayType *AT = dyn_cast<ArrayType>(T)) {
1906 if (BitCastInst *BC = dyn_cast<BitCastInst>(User)) {
1911 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(User)) {
1916 if (MemIntrinsic *MI = dyn_cast<MemIntrinsic>(User)) {
1917 ConstantInt *Length = dyn_cast<ConstantInt>(MI->getLength());
1927 if (LoadInst *LI = dyn_cast<LoadInst>(User)) {
1956 if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
2031 if (StructType *ST = dyn_cast<StructType>(T)) {
2104 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) { // memmove/memcopy
2166 if (StructType *ST = dyn_cast<StructType>(OtherTy)) {
2203 if (ConstantInt *CI = dyn_cast<ConstantInt>(MI->getArgOperand(1))) {
2287 if (StructType *EltSTy = dyn_cast<StructType>(AllocaEltTy)) {
2395 if (StructType *EltSTy = dyn_cast<StructType>(AllocaEltTy)) {
2470 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
2531 if (StructType *ST = dyn_cast<StructType>(AI->getAllocatedType())) {
2548 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(V))
2550 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V))
2575 if (LoadInst *LI = dyn_cast<LoadInst>(U)) {
2581 if (BitCastInst *BCI = dyn_cast<BitCastInst>(U)) {
2588 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(U)) {
2620 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(U)) {
2631 MemTransferInst *MI = dyn_cast<MemTransferInst>(U);