llvm-project/llvm/lib/Transforms/ObjCARC
Mehdi Amini 46a43556db Make DataLayout Non-Optional in the Module
Summary:
DataLayout keeps the string used for its creation.

As a side effect it is no longer needed in the Module.
This is "almost" NFC, the string is no longer
canonicalized, you can't rely on two "equals" DataLayout
having the same string returned by getStringRepresentation().

Get rid of DataLayoutPass: the DataLayout is in the Module

The DataLayout is "per-module", let's enforce this by not
duplicating it more than necessary.
One more step toward non-optionality of the DataLayout in the
module.

Make DataLayout Non-Optional in the Module

Module->getDataLayout() will never returns nullptr anymore.

Reviewers: echristo

Subscribers: resistor, llvm-commits, jholewinski

Differential Revision: http://reviews.llvm.org/D7992

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 231270
2015-03-04 18:43:29 +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
CMakeLists.txt [objc-arc] Change the InstructionClass to be an enum class called ARCInstKind. 2015-02-19 19:51:32 +00:00
DependencyAnalysis.cpp [objc-arc] Add the predicate CanDecrementRefCount. 2015-02-20 00:02:45 +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 [objc-arc] Change the InstructionClass to be an enum class called ARCInstKind. 2015-02-19 19:51:32 +00:00
ObjCARCAPElim.cpp [objc-arc] Change the InstructionClass to be an enum class called ARCInstKind. 2015-02-19 19:51:32 +00:00
ObjCARCAliasAnalysis.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
ObjCARCAliasAnalysis.h Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +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 [objc-arc] Change the InstructionClass to be an enum class called ARCInstKind. 2015-02-19 19:51:32 +00:00
ProvenanceAnalysis.cpp Update SetVector to rely on the underlying set's insert to return a pair<iterator, bool> 2014-11-19 07:49:26 +00:00
ProvenanceAnalysis.h Removing LLVM_DELETED_FUNCTION, as MSVC 2012 was the last reason for requiring the macro. NFC; LLVM edition. 2015-02-15 22:54:22 +00:00
ProvenanceAnalysisEvaluator.cpp Add back r222061 with a fix. 2014-11-17 02:28:27 +00:00