Home | History | Annotate | Download | only in InstCombine

Lines Matching full:dyn_cast

26   if (IntegerType* ITy = dyn_cast<IntegerType>(Ty)) {
48 ConstantInt *MemOpLength = dyn_cast<ConstantInt>(MI->getArgOperand(2));
85 if (StructType *STy = dyn_cast<StructType>(SrcETy)) {
90 } else if (ArrayType *ATy = dyn_cast<ArrayType>(SrcETy)) {
133 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength());
134 ConstantInt *FillC = dyn_cast<ConstantInt>(MI->getValue());
187 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&CI);
192 if (MemIntrinsic *MI = dyn_cast<MemIntrinsic>(II)) {
196 if (Constant *NumBytes = dyn_cast<Constant>(MI->getLength())) {
200 if (ConstantInt *CI = dyn_cast<ConstantInt>(NumBytes))
215 if (MemMoveInst *MMI = dyn_cast<MemMoveInst>(MI)) {
216 if (GlobalVariable *GVSrc = dyn_cast<GlobalVariable>(MMI->getSource()))
228 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) {
239 } else if (MemSetInst *MSI = dyn_cast<MemSetInst>(MI)) {
263 if (GEPOperator *GEP = dyn_cast<GEPOperator>(Op1)) {
275 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(Op1))
281 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(Op1)) {
290 } else if (AllocaInst *AI = dyn_cast<AllocaInst>(Op1)) {
295 const ConstantInt *C = dyn_cast<ConstantInt>(AI->getArraySize());
305 if (ConstantInt *NElements = dyn_cast<ConstantInt>(NElems))
323 if (IntrinsicInst *Operand = dyn_cast<IntrinsicInst>(II->getArgOperand(0)))
328 if (TruncInst *TI = dyn_cast<TruncInst>(II->getArgOperand(0))) {
329 if (IntrinsicInst *Operand = dyn_cast<IntrinsicInst>(TI->getOperand(0)))
341 if (ConstantInt *Power = dyn_cast<ConstantInt>(II->getArgOperand(1))) {
357 IntegerType *IT = dyn_cast<IntegerType>(II->getArgOperand(0)->getType());
376 IntegerType *IT = dyn_cast<IntegerType>(II->getArgOperand(0)->getType());
453 if (ConstantInt *RHS = dyn_cast<ConstantInt>(II->getArgOperand(1))) {
474 if (ConstantInt *RHS = dyn_cast<ConstantInt>(II->getArgOperand(1))) {
531 if (ConstantInt *RHSI = dyn_cast<ConstantInt>(II->getArgOperand(1))) {
625 if (ConstantVector *Mask = dyn_cast<ConstantVector>(II->getArgOperand(2))) {
689 ConstantInt *IntrAlign = dyn_cast<ConstantInt>(II->getArgOperand(AlignArg));
702 if (IntrinsicInst *SS = dyn_cast<IntrinsicInst>(II->getArgOperand(0))) {
720 if (CallInst *BCI = dyn_cast<CallInst>(BI)) {
721 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(BCI)) {
788 dyn_cast<ConstantInt>(CI->getArgOperand(SizeCIOp))) {
798 if (ConstantInt *Arg = dyn_cast<ConstantInt>(
833 if (Function *CalleeF = dyn_cast<Function>(Callee))
873 if (InvokeInst *II = dyn_cast<InvokeInst>(CS.getInstruction())) {
881 if (BitCastInst *BC = dyn_cast<BitCastInst>(Callee))
882 if (IntrinsicInst *In = dyn_cast<IntrinsicInst>(BC->getOperand(0)))
894 CastInst *CI = dyn_cast<CastInst>(*I);
911 if (CallInst *CI = dyn_cast<CallInst>(CS.getInstruction())) {
926 dyn_cast<Function>(CS.getCalledValue()->stripPointerCasts());
970 if (InvokeInst *II = dyn_cast<InvokeInst>(Caller))
973 if (PHINode *PN = dyn_cast<PHINode>(*UI))
997 PointerType *ParamPTy = dyn_cast<PointerType>(ParamTy);
1118 if (InvokeInst *II = dyn_cast<InvokeInst>(Caller)) {
1145 if (InvokeInst *II = dyn_cast<InvokeInst>(Caller)) {
1288 if (InvokeInst *II = dyn_cast<InvokeInst>(Caller)) {