Lines Matching full:dyn_cast
59 if (VectorType *VTy = dyn_cast<VectorType>(In1->getType())) {
94 if (VectorType *VTy = dyn_cast<VectorType>(In1->getType())) {
205 ConstantArray *Init = dyn_cast<ConstantArray>(GV->getInitializer());
225 ConstantInt *Idx = dyn_cast<ConstantInt>(GEP->getOperand(i));
231 if (StructType *STy = dyn_cast<StructType>(EltTy))
233 else if (ArrayType *ATy = dyn_cast<ArrayType>(EltTy)) {
481 if (ConstantInt *CI = dyn_cast<ConstantInt>(GEP->getOperand(i))) {
486 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
509 ConstantInt *CI = dyn_cast<ConstantInt>(GEP->getOperand(i));
516 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
569 if (BitCastInst *BCI = dyn_cast<BitCastInst>(RHS))
585 } else if (GEPOperator *GEPRHS = dyn_cast<GEPOperator>(RHS)) {
940 BinaryOperator *TheDiv = dyn_cast<BinaryOperator>(Tmp);
1019 if (ConstantInt *XorCST = dyn_cast<ConstantInt>(LHSI->getOperand(1))) {
1082 if (TruncInst *Cast = dyn_cast<TruncInst>(LHSI->getOperand(0))) {
1100 if (ZExtInst *Cast = dyn_cast<ZExtInst>(LHSI->getOperand(0))) {
1118 BinaryOperator *Shift = dyn_cast<BinaryOperator>(LHSI->getOperand(0));
1123 ShAmt = Shift ? dyn_cast<ConstantInt>(Shift->getOperand(1)) : 0;
1204 if (LoadInst *LI = dyn_cast<LoadInst>(LHSI->getOperand(0))) {
1206 dyn_cast<GetElementPtrInst>(LI->getOperand(0)))
1207 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(GEP->getOperand(0)))
1239 ConstantInt *ShAmt = dyn_cast<ConstantInt>(LHSI->getOperand(1));
1303 if (ConstantInt *ShAmt = dyn_cast<ConstantInt>(LHSI->getOperand(1))) {
1324 if (ConstantInt *DivRHS = dyn_cast<ConstantInt>(LHSI->getOperand(1)))
1333 ConstantInt *LHSC = dyn_cast<ConstantInt>(LHSI->getOperand(1));
1367 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(LHSI)) {
1384 if (ConstantInt *BOp1C = dyn_cast<ConstantInt>(BO->getOperand(1))) {
1407 if (Constant *BOC = dyn_cast<Constant>(BO->getOperand(1))) {
1418 if (ConstantInt *BOp0C = dyn_cast<ConstantInt>(BO->getOperand(0))) {
1431 if (ConstantInt *BOC = dyn_cast<ConstantInt>(BO->getOperand(1))) {
1441 if (ConstantInt *BOC = dyn_cast<ConstantInt>(BO->getOperand(1))) {
1479 } else if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(LHSI)) {
1530 if (Constant *RHSC = dyn_cast<Constant>(ICI.getOperand(1))) {
1532 } else if (PtrToIntInst *RHSC = dyn_cast<PtrToIntInst>(ICI.getOperand(1))) {
1552 if (CastInst *CI = dyn_cast<CastInst>(ICI.getOperand(1))) {
1577 ConstantInt *CI = dyn_cast<ConstantInt>(ICI.getOperand(1));
1673 TruncInst *TI = dyn_cast<TruncInst>(*UI);
1714 Instruction *OrigAdd = dyn_cast<Instruction>(OrigAddV);
1744 ConstantInt *CI = dyn_cast<ConstantInt>(I.getOperand(1));
1842 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) {
2029 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) {
2048 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) {
2066 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) {
2080 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) {
2132 if (SelectInst *SI = dyn_cast<SelectInst>(*I.use_begin()))
2139 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) {
2143 if (Instruction *LHSI = dyn_cast<Instruction>(Op0))
2149 if (Constant *RHSC = dyn_cast<Constant>(Op1)) {
2150 if (Instruction *LHSI = dyn_cast<Instruction>(Op0))
2172 if (Constant *C = dyn_cast<Constant>(LHSI->getOperand(1)))
2174 if (Constant *C = dyn_cast<Constant>(LHSI->getOperand(2)))
2206 dyn_cast<GetElementPtrInst>(LHSI->getOperand(0))) {
2207 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(GEP->getOperand(0)))
2218 if (GEPOperator *GEP = dyn_cast<GEPOperator>(Op0))
2221 if (GEPOperator *GEP = dyn_cast<GEPOperator>(Op1))
2229 if (BitCastInst *CI = dyn_cast<BitCastInst>(Op0)) {
2238 if (BitCastInst *CI2 = dyn_cast<BitCastInst>(Op1))
2243 if (Constant *Op1C = dyn_cast<Constant>(Op1)) {
2267 BinaryOperator *BO0 = dyn_cast<BinaryOperator>(Op0);
2268 BinaryOperator *BO1 = dyn_cast<BinaryOperator>(Op1);
2379 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO0->getOperand(1))) {
2402 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO0->getOperand(1))) {
2448 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(Op1))
2808 if (Constant *RHSC = dyn_cast<Constant>(Op1)) {
2809 if (Instruction *LHSI = dyn_cast<Instruction>(Op0))
2814 ConstantFP *RHSF = dyn_cast<ConstantFP>(RHSC);
2866 if (Constant *C = dyn_cast<Constant>(LHSI->getOperand(1))) {
2872 } else if (Constant *C = dyn_cast<Constant>(LHSI->getOperand(2))) {
2895 dyn_cast<GetElementPtrInst>(LHSI->getOperand(0))) {
2896 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(GEP->getOperand(0)))
2912 if (FPExtInst *LHSExt = dyn_cast<FPExtInst>(Op0))
2913 if (FPExtInst *RHSExt = dyn_cast<FPExtInst>(Op1))