Lines Matching refs:dyn_cast

78   CallInst *CI = dyn_cast<CallInst>(SI.getCondition());  in handleSwitchExpect()
88 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect()
122 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef()
140 if (ZExtInst *ZExt = dyn_cast<ZExtInst>(V)) { in handlePhiDef()
146 if (SExtInst *SExt = dyn_cast<SExtInst>(V)) { in handlePhiDef()
152 BinaryOperator *BinOp = dyn_cast<BinaryOperator>(V); in handlePhiDef()
156 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef()
191 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef()
197 BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef()
209 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef()
275 ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition()); in handleBrSelExpect()
279 CI = dyn_cast<CallInst>(BSI.getCondition()); in handleBrSelExpect()
286 CmpConstOperand = dyn_cast<ConstantInt>(CmpI->getOperand(1)); in handleBrSelExpect()
289 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBrSelExpect()
308 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBrSelExpect()
355 if (BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator())) { in lowerExpectIntrinsic()
358 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB.getTerminator())) { in lowerExpectIntrinsic()
367 CallInst *CI = dyn_cast<CallInst>(&Inst); in lowerExpectIntrinsic()
369 if (SelectInst *SI = dyn_cast<SelectInst>(&Inst)) { in lowerExpectIntrinsic()