llvm-6502/lib/Transforms/Utils
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
..
AddDiscriminators.cpp
ASanStackFrameLayout.cpp [asan] Reuse a common function. 2015-02-16 14:49:37 +00:00
BasicBlockUtils.cpp
BreakCriticalEdges.cpp
BuildLibCalls.cpp
BypassSlowDivision.cpp
CloneFunction.cpp Remap frame variables for native Windows exception handling. 2015-02-23 20:01:56 +00:00
CloneModule.cpp
CMakeLists.txt Use ADDITIONAL_HEADER_DIRS in all LLVM CMake projects. 2015-02-11 03:28:02 +00:00
CmpInstAnalysis.cpp
CodeExtractor.cpp
CtorUtils.cpp
DemoteRegToStack.cpp Fix a bug in DemoteRegToStack where a reload instruction was inserted into the 2015-02-09 06:38:23 +00:00
FlattenCFG.cpp
GlobalStatus.cpp
InlineFunction.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
InstructionNamer.cpp
IntegerDivision.cpp
LCSSA.cpp
LLVMBuild.txt
Local.cpp Don't promote asynch EH invokes of nounwind functions to calls 2015-02-11 01:23:16 +00:00
LoopSimplify.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
LoopUnroll.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
LoopUnrollRuntime.cpp Partial fix for bug 22589 2015-02-18 19:32:25 +00:00
LowerInvoke.cpp
LowerSwitch.cpp LowerSwitch: Use ConstantInt for CaseRange::{Low,High} 2015-02-05 16:58:10 +00:00
Makefile
Mem2Reg.cpp
MetaRenamer.cpp
ModuleUtils.cpp
PromoteMemoryToRegister.cpp
SimplifyCFG.cpp Prevent hoisting fmul from THEN/ELSE to IF if there is fmsub/fmadd opportunity. 2015-02-23 19:15:16 +00:00
SimplifyIndVar.cpp
SimplifyInstructions.cpp Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
SimplifyLibCalls.cpp
SSAUpdater.cpp SSAUpdater: Use range-based for. NFC. 2015-02-19 20:04:02 +00:00
SymbolRewriter.cpp [PM] Remove the old 'PassManager.h' header file at the top level of 2015-02-13 10:01:29 +00:00
UnifyFunctionExitNodes.cpp
Utils.cpp
ValueMapper.cpp Utils: Resolve cycles under distinct MDNodes 2015-02-04 19:44:34 +00:00