Home
last modified time | relevance | path

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

/external/llvm/lib/Analysis/
DObjCARCInstKind.cpp31 const ARCInstKind Class) { in operator <<()
33 case ARCInstKind::Retain: in operator <<()
35 case ARCInstKind::RetainRV: in operator <<()
37 case ARCInstKind::RetainBlock: in operator <<()
39 case ARCInstKind::Release: in operator <<()
41 case ARCInstKind::Autorelease: in operator <<()
43 case ARCInstKind::AutoreleaseRV: in operator <<()
45 case ARCInstKind::AutoreleasepoolPush: in operator <<()
47 case ARCInstKind::AutoreleasepoolPop: in operator <<()
49 case ARCInstKind::NoopCast: in operator <<()
[all …]
DObjCARCAliasAnalysis.cpp100 case ARCInstKind::NoopCast: in getModRefBehavior()
115 case ARCInstKind::Retain: in getModRefInfo()
116 case ARCInstKind::RetainRV: in getModRefInfo()
117 case ARCInstKind::Autorelease: in getModRefInfo()
118 case ARCInstKind::AutoreleaseRV: in getModRefInfo()
119 case ARCInstKind::NoopCast: in getModRefInfo()
120 case ARCInstKind::AutoreleasepoolPush: in getModRefInfo()
121 case ARCInstKind::FusedRetainAutorelease: in getModRefInfo()
122 case ARCInstKind::FusedRetainAutoreleaseRV: in getModRefInfo()
/external/llvm/include/llvm/Analysis/
DObjCARCInstKind.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 …]
DObjCARCAnalysisUtils.h185 inline ARCInstKind GetCallSiteClass(ImmutableCallSite CS) { in GetCallSiteClass()
189 return CS.onlyReadsMemory() ? ARCInstKind::User : ARCInstKind::CallOrUser; in GetCallSiteClass()
191 return CS.onlyReadsMemory() ? ARCInstKind::None : ARCInstKind::Call; in GetCallSiteClass()
/external/llvm/lib/Transforms/ObjCARC/
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);
610 if (GetBasicARCInstKind(&*I) == ARCInstKind::AutoreleaseRV && in OptimizeRetainRVCall()
644 ARCInstKind &Class) { in OptimizeAutoreleaseRVCall()
652 if (isa<ReturnInst>(U) || GetBasicARCInstKind(U) == ARCInstKind::RetainRV) in OptimizeAutoreleaseRVCall()
671 Class = ARCInstKind::Autorelease; in OptimizeAutoreleaseRVCall()
688 ARCInstKind Class = GetBasicARCInstKind(Inst); in OptimizeIndividualCalls()
703 case ARCInstKind::NoopCast: in OptimizeIndividualCalls()
711 case ARCInstKind::StoreWeak: in OptimizeIndividualCalls()
712 case ARCInstKind::LoadWeak: in OptimizeIndividualCalls()
713 case ARCInstKind::LoadWeakRetained: in OptimizeIndividualCalls()
[all …]
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 …]
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()
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);
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.cpp98 case ARCInstKind::AutoreleasepoolPush: in OptimizeBB()
101 case ARCInstKind::AutoreleasepoolPop: in OptimizeBB()
115 case ARCInstKind::CallOrUser: in OptimizeBB()