Lines Matching refs:CastInst
178 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt() local
179 if (CastInst->isCast()) in findMatInsertPt()
180 return CastInst; in findMatInsertPt()
463 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates() local
466 if (!CastInst->isCast()) in collectConstantCandidates()
469 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates()
788 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants() local
789 assert(CastInst->isCast() && "Expected an cast instruction!"); in emitBaseConstants()
792 Instruction *&ClonedCastInst = ClonedCastMap[CastInst]; in emitBaseConstants()
794 ClonedCastInst = CastInst->clone(); in emitBaseConstants()
796 ClonedCastInst->insertAfter(CastInst); in emitBaseConstants()
798 ClonedCastInst->setDebugLoc(CastInst->getDebugLoc()); in emitBaseConstants()
799 LLVM_DEBUG(dbgs() << "Clone instruction: " << *CastInst << '\n' in emitBaseConstants()