Lines Matching refs:CastInst
176 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt() local
177 if (CastInst->isCast()) in findMatInsertPt()
178 return CastInst; in findMatInsertPt()
457 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates() local
460 if (!CastInst->isCast()) in collectConstantCandidates()
463 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates()
791 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants() local
792 assert(CastInst->isCast() && "Expected an cast instruction!"); in emitBaseConstants()
795 Instruction *&ClonedCastInst = ClonedCastMap[CastInst]; in emitBaseConstants()
797 ClonedCastInst = CastInst->clone(); in emitBaseConstants()
799 ClonedCastInst->insertAfter(CastInst); in emitBaseConstants()
801 ClonedCastInst->setDebugLoc(CastInst->getDebugLoc()); in emitBaseConstants()
802 LLVM_DEBUG(dbgs() << "Clone instruction: " << *CastInst << '\n' in emitBaseConstants()