Lines Matching refs:CastInst
124 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt() local
125 if (CastInst->isCast()) in findMatInsertPt()
126 return CastInst; in findMatInsertPt()
249 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates() local
252 if (!CastInst->isCast()) in collectConstantCandidates()
255 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates()
502 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants() local
503 assert(CastInst->isCast() && "Expected an cast instruction!"); in emitBaseConstants()
506 Instruction *&ClonedCastInst = ClonedCastMap[CastInst]; in emitBaseConstants()
508 ClonedCastInst = CastInst->clone(); in emitBaseConstants()
510 ClonedCastInst->insertAfter(CastInst); in emitBaseConstants()
512 ClonedCastInst->setDebugLoc(CastInst->getDebugLoc()); in emitBaseConstants()
513 DEBUG(dbgs() << "Clone instruction: " << *CastInst << '\n' in emitBaseConstants()