llvm-6502/lib/CodeGen/SelectionDAG
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
..
CMakeLists.txt
DAGCombiner.cpp [DAGCombiner] Add a shuffle mask commutation helper function. NFCI. 2015-03-07 22:33:11 +00:00
FastISel.cpp
FunctionLoweringInfo.cpp
InstrEmitter.cpp
InstrEmitter.h
LegalizeDAG.cpp [CodeGen] Replace the reused stores' chain for extractelt expansion. 2015-03-09 22:51:05 +00:00
LegalizeFloatTypes.cpp
LegalizeIntegerTypes.cpp LegalizeTypes: Handle shift by 0 in ExpandShiftByConstant. 2015-03-06 01:13:01 +00:00
LegalizeTypes.cpp
LegalizeTypes.h
LegalizeTypesGeneric.cpp
LegalizeVectorOps.cpp
LegalizeVectorTypes.cpp
LLVMBuild.txt
Makefile
ResourcePriorityQueue.cpp
ScheduleDAGFast.cpp
ScheduleDAGRRList.cpp
ScheduleDAGSDNodes.cpp
ScheduleDAGSDNodes.h
ScheduleDAGVLIW.cpp
SDNodeDbgValue.h
SelectionDAG.cpp DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
SelectionDAGBuilder.cpp DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
SelectionDAGBuilder.h Revert change r231366 as it broke clang-native-arm-cortex-a9 Analysis/properties.m test. 2015-03-05 15:41:14 +00:00
SelectionDAGDumper.cpp X86: Optimize address mode matching for FRAME_ALLOC_RECOVER nodes 2015-03-05 18:50:12 +00:00
SelectionDAGISel.cpp Make constant arrays that are passed to functions as const. 2015-03-07 17:41:00 +00:00
SelectionDAGPrinter.cpp
StatepointLowering.cpp Revert change r231366 as it broke clang-native-arm-cortex-a9 Analysis/properties.m test. 2015-03-05 15:41:14 +00:00
StatepointLowering.h
TargetLowering.cpp
TargetSelectionDAGInfo.cpp