Lines Matching refs:CastInst
220 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt() local
221 if (CastInst->isCast()) in findMatInsertPt()
222 return CastInst; in findMatInsertPt()
334 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates() local
337 if (!CastInst->isCast()) in collectConstantCandidates()
340 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates()
495 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants() local
496 assert(CastInst->isCast() && "Expected an cast instruction!"); in emitBaseConstants()
499 Instruction *&ClonedCastInst = ClonedCastMap[CastInst]; in emitBaseConstants()
501 ClonedCastInst = CastInst->clone(); in emitBaseConstants()
503 ClonedCastInst->insertAfter(CastInst); in emitBaseConstants()
505 ClonedCastInst->setDebugLoc(CastInst->getDebugLoc()); in emitBaseConstants()
506 DEBUG(dbgs() << "Clone instruction: " << *CastInst << '\n' in emitBaseConstants()