[multiversion] Remove the cached TargetMachine pointer from the
authorChandler Carruth <chandlerc@gmail.com>
Sun, 1 Feb 2015 14:01:15 +0000 (14:01 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 1 Feb 2015 14:01:15 +0000 (14:01 +0000)
commitc340ca839c083970e3ff0d123c771fe01e43c808
treeecde5e58d22c8d4144cd54f992234a258ea8ee93
parent0ef5e3916667d586d4844ccef5adbe2e3579051f
[multiversion] Remove the cached TargetMachine pointer from the
intermediate TTI implementation template and instead query up to the
derived class for both the TargetMachine and the TargetLowering.

Most of the derived types had a TLI cached already and there is no need
to store a less precisely typed target machine pointer.

This will in turn make it much cleaner to look up the TLI via
a per-function subtarget instead of the generic subtarget, and it will
pave the way toward pulling the subtarget used for unroll preferences
into the same form once we are *always* using the function to look up
the correct subtarget.

llvm-svn: 227737
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
llvm/lib/Target/ARM/ARMTargetTransformInfo.h
llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.h
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h
llvm/lib/Target/R600/AMDGPUTargetTransformInfo.h
llvm/lib/Target/X86/X86TargetTransformInfo.h
llvm/lib/Target/XCore/XCoreTargetTransformInfo.h