Lines Matching refs:CastInst
173 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt() local
174 if (CastInst->isCast()) in findMatInsertPt()
175 return CastInst; in findMatInsertPt()
442 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates() local
445 if (!CastInst->isCast()) in collectConstantCandidates()
448 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates()
767 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants() local
768 assert(CastInst->isCast() && "Expected an cast instruction!"); in emitBaseConstants()
771 Instruction *&ClonedCastInst = ClonedCastMap[CastInst]; in emitBaseConstants()
773 ClonedCastInst = CastInst->clone(); in emitBaseConstants()
775 ClonedCastInst->insertAfter(CastInst); in emitBaseConstants()
777 ClonedCastInst->setDebugLoc(CastInst->getDebugLoc()); in emitBaseConstants()
778 LLVM_DEBUG(dbgs() << "Clone instruction: " << *CastInst << '\n' in emitBaseConstants()