llvm-6502/lib/Transforms/ObjCARC
Mehdi Amini 529919ff31 DataLayout is mandatory, update the API to reflect it with references.
Summary:
Now that the DataLayout is a mandatory part of the module, let's start
cleaning the codebase. This patch is a first attempt at doing that.

This patch is not exactly NFC as for instance some places were passing
a nullptr instead of the DataLayout, possibly just because there was a
default value on the DataLayout argument to many functions in the API.
Even though it is not purely NFC, there is no change in the
validation.

I turned as many pointer to DataLayout to references, this helped
figuring out all the places where a nullptr could come up.

I had initially a local version of this patch broken into over 30
independant, commits but some later commit were cleaning the API and
touching part of the code modified in the previous commits, so it
seemed cleaner without the intermediate state.

Test Plan:

Reviewers: echristo

Subscribers: llvm-commits

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231740 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-10 02:37:25 +00:00
..
ARCInstKind.cpp [objc-arc] Add the predicate CanDecrementRefCount. 2015-02-20 00:02:45 +00:00
ARCInstKind.h [objc-arc] Add the predicate CanDecrementRefCount. 2015-02-20 00:02:45 +00:00
ARCRuntimeEntryPoints.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
BlotMapVector.h [objc-arc] Extract blot map vector into its own file. NFC. 2015-03-05 23:28:58 +00:00
CMakeLists.txt [objc-arc] Extract out state specific to a ref count from the main objc arc sequence dataflow. This will allow me to separate the actual ARC queries from the meat of the dataflow algorithm. 2015-03-05 23:29:03 +00:00
DependencyAnalysis.cpp DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
DependencyAnalysis.h [objc-arc-contract] We can not move retains over instructions which can not conservatively be proven to not decrement the retain's RCIdentity. 2015-02-20 00:02:49 +00:00
LLVMBuild.txt Added missing dashes from header declaration comment. 2013-01-29 04:53:55 +00:00
Makefile
ObjCARC.cpp Add back r222061 with a fix. 2014-11-17 02:28:27 +00:00
ObjCARC.h DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
ObjCARCAliasAnalysis.cpp DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
ObjCARCAliasAnalysis.h Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
ObjCARCAPElim.cpp [objc-arc] Change the InstructionClass to be an enum class called ARCInstKind. 2015-02-19 19:51:32 +00:00
ObjCARCContract.cpp [objc-arc-contract] We can not move retains over instructions which can not conservatively be proven to not decrement the retain's RCIdentity. 2015-02-20 00:02:49 +00:00
ObjCARCExpand.cpp [objc-arc] Change the InstructionClass to be an enum class called ARCInstKind. 2015-02-19 19:51:32 +00:00
ObjCARCOpts.cpp DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
ProvenanceAnalysis.cpp DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
ProvenanceAnalysis.h DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
ProvenanceAnalysisEvaluator.cpp DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
PtrState.cpp Silence C4715 'not all control paths return a value' warnings. 2015-03-06 07:49:14 +00:00
PtrState.h [objc-arc] Move the detection of potential uses or altering of a ref count onto PtrState. 2015-03-06 02:07:12 +00:00