Lines Matching refs:Intr
541 if (auto *Intr = dyn_cast<IntrinsicInst>(Inst)) { in promoteAllocaUserToVector() local
542 if (Intr->getIntrinsicID() == Intrinsic::objectsize) { in promoteAllocaUserToVector()
543 Intr->replaceAllUsesWith( in promoteAllocaUserToVector()
544 Builder.getIntN(Intr->getType()->getIntegerBitWidth(), in promoteAllocaUserToVector()
793 if (auto *Intr = dyn_cast<IntrinsicInst>(Inst)) { in tryPromoteAllocaToVector() local
794 if (Intr->getIntrinsicID() == Intrinsic::objectsize) { in tryPromoteAllocaToVector()
1457 IntrinsicInst *Intr = cast<IntrinsicInst>(Call); in tryPromoteAllocaToLDS() local
1458 Builder.SetInsertPoint(Intr); in tryPromoteAllocaToLDS()
1459 switch (Intr->getIntrinsicID()) { in tryPromoteAllocaToLDS()
1463 Intr->eraseFromParent(); in tryPromoteAllocaToLDS()
1470 DeferredIntrs.push_back(Intr); in tryPromoteAllocaToLDS()
1473 MemSetInst *MemSet = cast<MemSetInst>(Intr); in tryPromoteAllocaToLDS()
1477 Intr->eraseFromParent(); in tryPromoteAllocaToLDS()
1484 Intr->eraseFromParent(); in tryPromoteAllocaToLDS()
1490 Value *Src = Intr->getOperand(0); in tryPromoteAllocaToLDS()
1493 {Intr->getType(), in tryPromoteAllocaToLDS()
1498 {Src, Intr->getOperand(1), Intr->getOperand(2), Intr->getOperand(3)}); in tryPromoteAllocaToLDS()
1499 Intr->replaceAllUsesWith(NewCall); in tryPromoteAllocaToLDS()
1500 Intr->eraseFromParent(); in tryPromoteAllocaToLDS()
1504 Intr->print(errs()); in tryPromoteAllocaToLDS()
1509 for (IntrinsicInst *Intr : DeferredIntrs) { in tryPromoteAllocaToLDS()
1510 Builder.SetInsertPoint(Intr); in tryPromoteAllocaToLDS()
1511 Intrinsic::ID ID = Intr->getIntrinsicID(); in tryPromoteAllocaToLDS()
1514 MemTransferInst *MI = cast<MemTransferInst>(Intr); in tryPromoteAllocaToLDS()
1520 if (uint64_t Bytes = Intr->getParamDereferenceableBytes(I)) { in tryPromoteAllocaToLDS()
1525 Intr->eraseFromParent(); in tryPromoteAllocaToLDS()