Lines Matching refs:CastInst
177 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt() local
178 if (CastInst->isCast()) in findMatInsertPt()
179 return CastInst; in findMatInsertPt()
465 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates() local
468 if (!CastInst->isCast()) in collectConstantCandidates()
471 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates()
799 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants() local
800 assert(CastInst->isCast() && "Expected an cast instruction!"); in emitBaseConstants()
803 Instruction *&ClonedCastInst = ClonedCastMap[CastInst]; in emitBaseConstants()
805 ClonedCastInst = CastInst->clone(); in emitBaseConstants()
807 ClonedCastInst->insertAfter(CastInst); in emitBaseConstants()
809 ClonedCastInst->setDebugLoc(CastInst->getDebugLoc()); in emitBaseConstants()
810 LLVM_DEBUG(dbgs() << "Clone instruction: " << *CastInst << '\n' in emitBaseConstants()