Home | History | Annotate | Download | only in InstCombine

Lines Matching full:dyn_cast

26   if (ConstantInt *CI = dyn_cast<ConstantInt>(Val)) {
32 if (BinaryOperator *I = dyn_cast<BinaryOperator>(Val)) {
34 OverflowingBinaryOperator *OBI = dyn_cast<OverflowingBinaryOperator>(Val);
41 if (ConstantInt *RHS = dyn_cast<ConstantInt>(I->getOperand(1))) {
156 if (Constant *C = dyn_cast<Constant>(V)) {
159 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C))
269 if (const CastInst *CI = dyn_cast<CastInst>(V))
288 if (CastInst *CSrc = dyn_cast<CastInst>(Src)) { // A->B->C cast
298 if (SelectInst *SI = dyn_cast<SelectInst>(Src))
332 Instruction *I = dyn_cast<Instruction>(V);
377 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1))) {
387 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1))) {
507 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(ICI->getOperand(1))) {
589 if (IntegerType *ITy = dyn_cast<IntegerType>(CI.getType())) {
652 Instruction *I = dyn_cast<Instruction>(V);
705 if (ConstantInt *Amt = dyn_cast<ConstantInt>(I->getOperand(1))) {
797 if (TruncInst *CSrc = dyn_cast<TruncInst>(Src)) { // A->B->C cast
831 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Src))
834 BinaryOperator *SrcI = dyn_cast<BinaryOperator>(Src);
838 ICmpInst *LHS = dyn_cast<ICmpInst>(SrcI->getOperand(0));
839 ICmpInst *RHS = dyn_cast<ICmpInst>(SrcI->getOperand(1));
851 if (ConstantInt *C = dyn_cast<ConstantInt>(SrcI->getOperand(1)))
852 if (TruncInst *TI = dyn_cast<TruncInst>(SrcI->getOperand(0))) {
862 if (ConstantInt *C = dyn_cast<ConstantInt>(SrcI->getOperand(1)))
863 if (BinaryOperator *And = dyn_cast<BinaryOperator>(SrcI->getOperand(0)))
866 if (TruncInst *TI = dyn_cast<TruncInst>(And->getOperand(0))) {
893 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) {
968 if (VectorType *VTy = dyn_cast<VectorType>(CI.getType())) {
998 Instruction *I = dyn_cast<Instruction>(V);
1096 if (TruncInst *TI = dyn_cast<TruncInst>(Src))
1107 if (ICmpInst *ICI = dyn_cast<ICmpInst>(Src))
1155 if (Instruction *I = dyn_cast<Instruction>(V))
1162 if (ConstantFP *CFP = dyn_cast<ConstantFP>(V)) {
1186 BinaryOperator *OpI = dyn_cast<BinaryOperator>(CI.getOperand(0));
1216 CallInst *Call = dyn_cast<CallInst>(CI.getOperand(0));
1221 CastInst *Arg = dyn_cast<CastInst>(Call->getArgOperand(0));
1254 Instruction *OpI = dyn_cast<Instruction>(FI.getOperand(0));
1274 Instruction *OpI = dyn_cast<Instruction>(FI.getOperand(0));
1330 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Src)) {
1482 if (Constant *C = dyn_cast<Constant>(V))
1494 if (Constant *C = dyn_cast<Constant>(V)) {
1525 Instruction *I = dyn_cast<Instruction>(V);
1546 ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1));
1662 if (PointerType *DstPTy = dyn_cast<PointerType>(DestTy)) {
1676 if (AllocaInst *AI = dyn_cast<AllocaInst>(Src))
1705 if (VectorType *DestVTy = dyn_cast<VectorType>(DestTy)) {
1719 if (BitCastInst *BCIn = dyn_cast<BitCastInst>(SrcCast->getOperand(0)))
1734 if (VectorType *SrcVTy = dyn_cast<VectorType>(SrcTy)) {
1743 if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(Src)) {
1755 if (((Tmp = dyn_cast<BitCastInst>(SVI->getOperand(0))) &&
1757 ((Tmp = dyn_cast<BitCastInst>(SVI->getOperand(1))) &&