llvm-6502/lib/Transforms/Scalar
Mehdi Amini c94da20917 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>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231270 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-04 18:43:29 +00:00
..
ADCE.cpp [ADCE] Don't indent inside an anonymous namespace 2015-02-16 18:08:00 +00:00
AlignmentFromAssumptions.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
BDCE.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
CMakeLists.txt Add a pass for constructing gc.statepoint sequences w/explicit relocations 2015-02-20 01:06:44 +00:00
ConstantHoisting.cpp [optnone] Skip pass Constant Hoisting on optnone functions. 2015-02-14 15:11:48 +00:00
ConstantProp.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
CorrelatedValuePropagation.cpp
DCE.cpp
DeadStoreElimination.cpp
EarlyCSE.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
FlattenCFGPass.cpp
GVN.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
InductiveRangeCheckElimination.cpp IRCE: only touch loops that have been shown to have a high 2015-02-26 08:56:04 +00:00
IndVarSimplify.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
JumpThreading.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
LICM.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
LLVMBuild.txt
LoadCombine.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
LoopDeletion.cpp
LoopIdiomRecognize.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
LoopInstSimplify.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
LoopRerollPass.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
LoopRotation.cpp LoopRotate: When reconstructing loop simplify form don't split edges from indirectbrs. 2015-02-20 20:49:25 +00:00
LoopStrengthReduce.cpp LSR: Move set instead of copying. NFC. 2015-02-19 17:19:43 +00:00
LoopUnrollPass.cpp Transforms: Canonicalize access to function attributes, NFC 2015-02-14 01:11:29 +00:00
LoopUnswitch.cpp Transforms: Canonicalize access to function attributes, NFC 2015-02-14 01:11:29 +00:00
LowerAtomic.cpp
LowerExpectIntrinsic.cpp [PM] Port LowerExpectIntrinsic to the new pass manager. 2015-01-24 11:13:02 +00:00
Makefile
MemCpyOptimizer.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
MergedLoadStoreMotion.cpp Fixed a bug in store sinking. 2015-02-17 13:10:05 +00:00
PartiallyInlineLibCalls.cpp [multiversion] Thread a function argument through all the callers of the 2015-02-01 12:01:35 +00:00
PlaceSafepoints.cpp PlaceSafepoints: use IRBuilder helpers 2015-02-26 00:35:56 +00:00
Reassociate.cpp Reassociate: cannot negate a INT_MIN value 2015-02-11 19:54:44 +00:00
Reg2Mem.cpp
RewriteStatepointsForGC.cpp [RewriteStatepointsForGC] Fix a relocation bug w.r.t values defined by invoke instructions 2015-03-04 00:13:52 +00:00
SampleProfile.cpp
Scalar.cpp Add a pass for constructing gc.statepoint sequences w/explicit relocations 2015-02-20 01:06:44 +00:00
Scalarizer.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
ScalarReplAggregates.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
SCCP.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
SeparateConstOffsetFromGEP.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
SimplifyCFGPass.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
Sink.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
SROA.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
StraightLineStrengthReduce.cpp Fixing a -Wsign-compare warning; NFC 2015-02-04 14:01:08 +00:00
StructurizeCFG.cpp StructurizeCFG: Remove obsolete fix for loop backedge detection 2015-02-04 20:49:47 +00:00
TailRecursionElimination.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00