Lines Matching refs:dyn_cast
54 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i)); in GetOffsetFromIndex()
60 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in GetOffsetFromIndex()
88 GEPOperator *GEP1 = dyn_cast<GEPOperator>(Ptr1); in IsPointerOffset()
89 GEPOperator *GEP2 = dyn_cast<GEPOperator>(Ptr2); in IsPointerOffset()
217 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) in addInst()
397 if (StoreInst *NextStore = dyn_cast<StoreInst>(BI)) { in INITIALIZE_PASS_DEPENDENCY()
500 if (LoadInst *LI = dyn_cast<LoadInst>(SI->getOperand(0))) { in processStore()
506 C = dyn_cast<CallInst>(ldep.getInst()); in processStore()
602 AllocaInst *srcAlloca = dyn_cast<AllocaInst>(cpySrc); in performCallSlotOptzn()
606 ConstantInt *srcArraySize = dyn_cast<ConstantInt>(srcAlloca->getArraySize()); in performCallSlotOptzn()
620 if (AllocaInst *A = dyn_cast<AllocaInst>(cpyDest)) { in performCallSlotOptzn()
622 ConstantInt *destArraySize = dyn_cast<ConstantInt>(A->getArraySize()); in performCallSlotOptzn()
631 } else if (Argument *A = dyn_cast<Argument>(cpyDest)) { in performCallSlotOptzn()
678 if (GetElementPtrInst *G = dyn_cast<GetElementPtrInst>(U)) { in performCallSlotOptzn()
686 if (const IntrinsicInst *IT = dyn_cast<IntrinsicInst>(U)) in performCallSlotOptzn()
704 if (Instruction *cpyDestInst = dyn_cast<Instruction>(cpyDest)) in performCallSlotOptzn()
786 ConstantInt *MDepLen = dyn_cast<ConstantInt>(MDep->getLength()); in processMemCpyMemCpyDependence()
787 ConstantInt *MLen = dyn_cast<ConstantInt>(M->getLength()); in processMemCpyMemCpyDependence()
860 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(M->getSource())) in processMemCpy()
873 ConstantInt *CopySize = dyn_cast<ConstantInt>(M->getLength()); in processMemCpy()
884 if (CallInst *C = dyn_cast<CallInst>(DepInfo.getInst())) { in processMemCpy()
899 if (MemCpyInst *MDep = dyn_cast<MemCpyInst>(SrcDepInfo.getInst())) in processMemCpy()
907 } else if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(I)) { in processMemCpy()
909 if (ConstantInt *LTSize = dyn_cast<ConstantInt>(II->getArgOperand(0))) in processMemCpy()
972 MemCpyInst *MDep = dyn_cast<MemCpyInst>(DepInfo.getInst()); in processByValArgument()
978 ConstantInt *C1 = dyn_cast<ConstantInt>(MDep->getLength()); in processByValArgument()
1040 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in iterateOnFunction()
1042 else if (MemSetInst *M = dyn_cast<MemSetInst>(I)) in iterateOnFunction()
1044 else if (MemCpyInst *M = dyn_cast<MemCpyInst>(I)) in iterateOnFunction()
1046 else if (MemMoveInst *M = dyn_cast<MemMoveInst>(I)) in iterateOnFunction()