llvm-6502/lib/Target/NVPTX
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
..
InstPrinter
MCTargetDesc TableGen: Use 'enum : uint64_t' for feature flags to fix -Wmicrosoft 2015-03-09 20:23:14 +00:00
TargetInfo
cl_common_defines.h
CMakeLists.txt NVPTX: Remove dead code. 2015-03-02 13:16:28 +00:00
LLVMBuild.txt
Makefile
ManagedStringPool.h
NVPTX.h
NVPTX.td
NVPTXAllocaHoisting.cpp
NVPTXAllocaHoisting.h Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
NVPTXAsmPrinter.cpp DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
NVPTXAsmPrinter.h
NVPTXAssignValidGlobalNames.cpp
NVPTXFavorNonGenericAddrSpaces.cpp
NVPTXFrameLowering.cpp Remove all use of is64bit off of NVPTXSubtarget and clean up code 2015-02-19 00:08:27 +00:00
NVPTXFrameLowering.h Remove all use of is64bit off of NVPTXSubtarget and clean up code 2015-02-19 00:08:27 +00:00
NVPTXGenericToNVVM.cpp
NVPTXImageOptimizer.cpp
NVPTXInstrFormats.td
NVPTXInstrInfo.cpp Remove all use of is64bit off of NVPTXSubtarget and clean up code 2015-02-19 00:08:27 +00:00
NVPTXInstrInfo.h Remove all use of is64bit off of NVPTXSubtarget and clean up code 2015-02-19 00:08:27 +00:00
NVPTXInstrInfo.td
NVPTXIntrinsics.td
NVPTXISelDAGToDAG.cpp Remove all use of is64bit off of NVPTXSubtarget and clean up code 2015-02-19 00:08:27 +00:00
NVPTXISelDAGToDAG.h Remove all use of is64bit off of NVPTXSubtarget and clean up code 2015-02-19 00:08:27 +00:00
NVPTXISelLowering.cpp Remove useless .debug_macinfo section setup. 2015-03-02 19:52:42 +00:00
NVPTXISelLowering.h getRegForInlineAsmConstraint wants to use TargetRegisterInfo for 2015-02-26 22:38:43 +00:00
NVPTXLowerAggrCopies.cpp Move unreferenced passes into the cpp file 2015-03-09 15:50:58 +00:00
NVPTXLowerAggrCopies.h Move unreferenced passes into the cpp file 2015-03-09 15:50:58 +00:00
NVPTXLowerStructArgs.cpp
NVPTXMachineFunctionInfo.h
NVPTXMCExpr.cpp
NVPTXMCExpr.h
NVPTXPrologEpilogPass.cpp
NVPTXRegisterInfo.cpp Remove all use of is64bit off of NVPTXSubtarget and clean up code 2015-02-19 00:08:27 +00:00
NVPTXRegisterInfo.h Remove all use of is64bit off of NVPTXSubtarget and clean up code 2015-02-19 00:08:27 +00:00
NVPTXRegisterInfo.td
NVPTXReplaceImageHandles.cpp
NVPTXSection.h Delete dead code. NFC. 2015-03-09 18:48:29 +00:00
NVPTXSubtarget.cpp Remove all use of is64bit off of NVPTXSubtarget and clean up code 2015-02-19 00:08:27 +00:00
NVPTXSubtarget.h Remove all use of is64bit off of NVPTXSubtarget and clean up code 2015-02-19 00:08:27 +00:00
NVPTXTargetMachine.cpp Remove all use of is64bit off of NVPTXSubtarget and clean up code 2015-02-19 00:08:27 +00:00
NVPTXTargetMachine.h
NVPTXTargetObjectFile.h Remove useless .debug_macinfo section setup. 2015-03-02 19:52:42 +00:00
NVPTXTargetTransformInfo.cpp
NVPTXTargetTransformInfo.h
NVPTXUtilities.cpp
NVPTXUtilities.h
NVPTXVector.td
NVVMReflect.cpp