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()
450 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates() local
453 if (!CastInst->isCast()) in collectConstantCandidates()
456 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates()
784 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants() local
785 assert(CastInst->isCast() && "Expected an cast instruction!"); in emitBaseConstants()
788 Instruction *&ClonedCastInst = ClonedCastMap[CastInst]; in emitBaseConstants()
790 ClonedCastInst = CastInst->clone(); in emitBaseConstants()
792 ClonedCastInst->insertAfter(CastInst); in emitBaseConstants()
794 ClonedCastInst->setDebugLoc(CastInst->getDebugLoc()); in emitBaseConstants()
795 LLVM_DEBUG(dbgs() << "Clone instruction: " << *CastInst << '\n' in emitBaseConstants()