Home
last modified time | relevance | path

Searched refs:ARCInstKind (Results 1 – 14 of 14) sorted by relevance

/external/llvm/lib/Transforms/ObjCARC/
DARCInstKind.cpp29 const ARCInstKind Class) { in operator <<()
31 case ARCInstKind::Retain: in operator <<()
33 case ARCInstKind::RetainRV: in operator <<()
35 case ARCInstKind::RetainBlock: in operator <<()
37 case ARCInstKind::Release: in operator <<()
39 case ARCInstKind::Autorelease: in operator <<()
41 case ARCInstKind::AutoreleaseRV: in operator <<()
43 case ARCInstKind::AutoreleasepoolPush: in operator <<()
45 case ARCInstKind::AutoreleasepoolPop: in operator <<()
47 case ARCInstKind::NoopCast: in operator <<()
[all …]
DARCInstKind.h30 enum class ARCInstKind { enum
57 raw_ostream &operator<<(raw_ostream &OS, const ARCInstKind Class);
60 bool IsUser(ARCInstKind Class);
63 bool IsRetain(ARCInstKind Class);
66 bool IsAutorelease(ARCInstKind Class);
70 bool IsForwarding(ARCInstKind Class);
74 bool IsNoopOnNull(ARCInstKind Class);
78 bool IsAlwaysTail(ARCInstKind Class);
82 bool IsNeverTail(ARCInstKind Class);
86 bool IsNoThrow(ARCInstKind Class);
[all …]
DDependencyAnalysis.cpp37 ARCInstKind Class) { in CanAlterRefCount()
39 case ARCInstKind::Autorelease: in CanAlterRefCount()
40 case ARCInstKind::AutoreleaseRV: in CanAlterRefCount()
41 case ARCInstKind::IntrinsicUser: in CanAlterRefCount()
42 case ARCInstKind::User: in CanAlterRefCount()
74 ARCInstKind Class) { in CanDecrementRefCount()
86 ProvenanceAnalysis &PA, ARCInstKind Class) { in CanUse()
89 if (Class == ARCInstKind::Call) in CanUse()
143 ARCInstKind Class = GetARCInstKind(Inst); in Depends()
145 case ARCInstKind::AutoreleasepoolPop: in Depends()
[all …]
DObjCARCOpts.cpp491 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()
[all …]
DObjCARCAliasAnalysis.cpp128 case ARCInstKind::NoopCast: in getModRefBehavior()
143 case ARCInstKind::Retain: in getModRefInfo()
144 case ARCInstKind::RetainRV: in getModRefInfo()
145 case ARCInstKind::Autorelease: in getModRefInfo()
146 case ARCInstKind::AutoreleaseRV: in getModRefInfo()
147 case ARCInstKind::NoopCast: in getModRefInfo()
148 case ARCInstKind::AutoreleasepoolPush: in getModRefInfo()
149 case ARCInstKind::FusedRetainAutorelease: in getModRefInfo()
150 case ARCInstKind::FusedRetainAutoreleaseRV: in getModRefInfo()
DObjCARCExpand.cpp103 case ARCInstKind::Retain: in runOnFunction()
104 case ARCInstKind::RetainRV: in runOnFunction()
105 case ARCInstKind::Autorelease: in runOnFunction()
106 case ARCInstKind::AutoreleaseRV: in runOnFunction()
107 case ARCInstKind::FusedRetainAutorelease: in runOnFunction()
108 case ARCInstKind::FusedRetainAutoreleaseRV: { in runOnFunction()
DObjCARCContract.cpp87 ARCInstKind Class,
147 Function &F, Instruction *Autorelease, ARCInstKind Class, in contractAutorelease()
155 if (Class == ARCInstKind::AutoreleaseRV) in contractAutorelease()
173 if (!Retain || GetBasicARCInstKind(Retain) != ARCInstKind::Retain || in contractAutorelease()
184 Constant *Decl = EP.get(Class == ARCInstKind::AutoreleaseRV in contractAutorelease()
224 ARCInstKind Class = GetBasicARCInstKind(Inst); in findSafeStoreForStoreStrongContraction()
287 while (I != Begin && GetBasicARCInstKind(I) != ARCInstKind::Retain) { in findRetainForStoreStrongContraction()
298 if (GetBasicARCInstKind(Retain) != ARCInstKind::Retain) in findRetainForStoreStrongContraction()
411 ARCInstKind Class = GetBasicARCInstKind(Inst); in tryToPeepholeInstruction()
413 case ARCInstKind::FusedRetainAutorelease: in tryToPeepholeInstruction()
[all …]
DPtrState.h183 ProvenanceAnalysis &PA, ARCInstKind Class);
185 ProvenanceAnalysis &PA, ARCInstKind Class);
193 bool InitTopDown(ARCInstKind Kind, Instruction *I);
201 ProvenanceAnalysis &PA, ARCInstKind Class);
204 ProvenanceAnalysis &PA, ARCInstKind Class);
DDependencyAnalysis.h67 ARCInstKind Class);
72 ProvenanceAnalysis &PA, ARCInstKind Class);
77 ProvenanceAnalysis &PA, ARCInstKind Class);
DObjCARC.h212 static inline ARCInstKind GetCallSiteClass(ImmutableCallSite CS) { in GetCallSiteClass()
216 return CS.onlyReadsMemory() ? ARCInstKind::User : ARCInstKind::CallOrUser; in GetCallSiteClass()
218 return CS.onlyReadsMemory() ? ARCInstKind::None : ARCInstKind::Call; in GetCallSiteClass()
DPtrState.cpp218 ARCInstKind Class) { in HandlePotentialAlterRefCount()
246 ARCInstKind Class) { in HandlePotentialUse()
296 bool TopDownPtrState::InitTopDown(ARCInstKind Kind, Instruction *I) { in InitTopDown()
301 if (Kind != ARCInstKind::RetainRV) { in InitTopDown()
353 ARCInstKind Class) { in HandlePotentialAlterRefCount()
385 ARCInstKind Class) { in HandlePotentialUse()
DObjCARCAPElim.cpp101 case ARCInstKind::AutoreleasepoolPush: in OptimizeBB()
104 case ARCInstKind::AutoreleasepoolPop: in OptimizeBB()
118 case ARCInstKind::CallOrUser: in OptimizeBB()
DCMakeLists.txt7 ARCInstKind.cpp
DAndroid.mk4 ARCInstKind.cpp \