Lines Matching refs:ARCInstKind
491 ARCInstKind &Class);
605 if (GetBasicARCInstKind(I) == ARCInstKind::AutoreleaseRV && in OptimizeRetainRVCall()
639 ARCInstKind &Class) { in OptimizeAutoreleaseRVCall()
647 if (isa<ReturnInst>(U) || GetBasicARCInstKind(U) == ARCInstKind::RetainRV) in OptimizeAutoreleaseRVCall()
666 Class = ARCInstKind::Autorelease; in OptimizeAutoreleaseRVCall()
683 ARCInstKind Class = GetBasicARCInstKind(Inst); in OptimizeIndividualCalls()
698 case ARCInstKind::NoopCast: in OptimizeIndividualCalls()
706 case ARCInstKind::StoreWeak: in OptimizeIndividualCalls()
707 case ARCInstKind::LoadWeak: in OptimizeIndividualCalls()
708 case ARCInstKind::LoadWeakRetained: in OptimizeIndividualCalls()
709 case ARCInstKind::InitWeak: in OptimizeIndividualCalls()
710 case ARCInstKind::DestroyWeak: { in OptimizeIndividualCalls()
727 case ARCInstKind::CopyWeak: in OptimizeIndividualCalls()
728 case ARCInstKind::MoveWeak: { in OptimizeIndividualCalls()
748 case ARCInstKind::RetainRV: in OptimizeIndividualCalls()
752 case ARCInstKind::AutoreleaseRV: in OptimizeIndividualCalls()
781 Class = ARCInstKind::Release; in OptimizeIndividualCalls()
870 case ARCInstKind::Retain: in OptimizeIndividualCalls()
871 case ARCInstKind::RetainBlock: in OptimizeIndividualCalls()
874 case ARCInstKind::Release: in OptimizeIndividualCalls()
881 case ARCInstKind::Autorelease: in OptimizeIndividualCalls()
887 case ARCInstKind::RetainRV: in OptimizeIndividualCalls()
888 case ARCInstKind::AutoreleaseRV: in OptimizeIndividualCalls()
1099 ARCInstKind Class = GetARCInstKind(Inst); in VisitInstructionBottomUp()
1105 case ARCInstKind::Release: { in VisitInstructionBottomUp()
1112 case ARCInstKind::RetainBlock: in VisitInstructionBottomUp()
1117 case ARCInstKind::Retain: in VisitInstructionBottomUp()
1118 case ARCInstKind::RetainRV: { in VisitInstructionBottomUp()
1124 if (Class != ARCInstKind::RetainRV) { in VisitInstructionBottomUp()
1133 case ARCInstKind::AutoreleasepoolPop: in VisitInstructionBottomUp()
1137 case ARCInstKind::AutoreleasepoolPush: in VisitInstructionBottomUp()
1138 case ARCInstKind::None: in VisitInstructionBottomUp()
1141 case ARCInstKind::User: in VisitInstructionBottomUp()
1250 ARCInstKind Class = GetARCInstKind(Inst); in VisitInstructionTopDown()
1256 case ARCInstKind::RetainBlock: in VisitInstructionTopDown()
1262 case ARCInstKind::Retain: in VisitInstructionTopDown()
1263 case ARCInstKind::RetainRV: { in VisitInstructionTopDown()
1271 case ARCInstKind::Release: { in VisitInstructionTopDown()
1285 case ARCInstKind::AutoreleasepoolPop: in VisitInstructionTopDown()
1289 case ARCInstKind::AutoreleasepoolPush: in VisitInstructionTopDown()
1290 case ARCInstKind::None: in VisitInstructionTopDown()
1817 ARCInstKind Class = GetBasicARCInstKind(Inst); in OptimizeWeakCalls()
1818 if (Class != ARCInstKind::LoadWeak && in OptimizeWeakCalls()
1819 Class != ARCInstKind::LoadWeakRetained) in OptimizeWeakCalls()
1823 if (Class == ARCInstKind::LoadWeak && Inst->use_empty()) { in OptimizeWeakCalls()
1838 ARCInstKind EarlierClass = GetARCInstKind(EarlierInst); in OptimizeWeakCalls()
1840 case ARCInstKind::LoadWeak: in OptimizeWeakCalls()
1841 case ARCInstKind::LoadWeakRetained: { in OptimizeWeakCalls()
1852 if (Class == ARCInstKind::LoadWeakRetained) { in OptimizeWeakCalls()
1869 case ARCInstKind::StoreWeak: in OptimizeWeakCalls()
1870 case ARCInstKind::InitWeak: { in OptimizeWeakCalls()
1881 if (Class == ARCInstKind::LoadWeakRetained) { in OptimizeWeakCalls()
1898 case ARCInstKind::MoveWeak: in OptimizeWeakCalls()
1899 case ARCInstKind::CopyWeak: in OptimizeWeakCalls()
1902 case ARCInstKind::AutoreleasepoolPush: in OptimizeWeakCalls()
1903 case ARCInstKind::None: in OptimizeWeakCalls()
1904 case ARCInstKind::IntrinsicUser: in OptimizeWeakCalls()
1905 case ARCInstKind::User: in OptimizeWeakCalls()
1921 ARCInstKind Class = GetBasicARCInstKind(Inst); in OptimizeWeakCalls()
1922 if (Class != ARCInstKind::DestroyWeak) in OptimizeWeakCalls()
1931 case ARCInstKind::InitWeak: in OptimizeWeakCalls()
1932 case ARCInstKind::StoreWeak: in OptimizeWeakCalls()
1933 case ARCInstKind::DestroyWeak: in OptimizeWeakCalls()
1943 case ARCInstKind::InitWeak: in OptimizeWeakCalls()
1944 case ARCInstKind::StoreWeak: in OptimizeWeakCalls()
1948 case ARCInstKind::DestroyWeak: in OptimizeWeakCalls()
2010 ARCInstKind Class = GetBasicARCInstKind(Call); in HasSafePathToPredecessorCall()
2011 if (Class != ARCInstKind::CallOrUser && Class != ARCInstKind::Call) in HasSafePathToPredecessorCall()
2059 ARCInstKind AutoreleaseClass = GetBasicARCInstKind(Autorelease); in FindPredecessorAutoreleaseWithSafePath()
2151 case ARCInstKind::Retain: in GatherStatistics()
2154 case ARCInstKind::Release: in GatherStatistics()
2211 if (UsedInThisFunction & ((1 << unsigned(ARCInstKind::LoadWeak)) | in runOnFunction()
2212 (1 << unsigned(ARCInstKind::LoadWeakRetained)) | in runOnFunction()
2213 (1 << unsigned(ARCInstKind::StoreWeak)) | in runOnFunction()
2214 (1 << unsigned(ARCInstKind::InitWeak)) | in runOnFunction()
2215 (1 << unsigned(ARCInstKind::CopyWeak)) | in runOnFunction()
2216 (1 << unsigned(ARCInstKind::MoveWeak)) | in runOnFunction()
2217 (1 << unsigned(ARCInstKind::DestroyWeak)))) in runOnFunction()
2221 if (UsedInThisFunction & ((1 << unsigned(ARCInstKind::Retain)) | in runOnFunction()
2222 (1 << unsigned(ARCInstKind::RetainRV)) | in runOnFunction()
2223 (1 << unsigned(ARCInstKind::RetainBlock)))) in runOnFunction()
2224 if (UsedInThisFunction & (1 << unsigned(ARCInstKind::Release))) in runOnFunction()
2230 if (UsedInThisFunction & ((1 << unsigned(ARCInstKind::Autorelease)) | in runOnFunction()
2231 (1 << unsigned(ARCInstKind::AutoreleaseRV)))) in runOnFunction()