Move function dependent resetting of a subtarget variable out of the
authorEric Christopher <echristo@gmail.com>
Fri, 4 Jul 2014 01:55:26 +0000 (01:55 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 4 Jul 2014 01:55:26 +0000 (01:55 +0000)
commit1baa5d8ea2bdee9ebf99cda63067fca9a4b3df9d
tree17008b6827c009ce9df1fc56785a9552c7ab4ac6
parent2255dc771297ba037ddc83c02acde8937228718b
Move function dependent resetting of a subtarget variable out of the
subtarget. This involved having the movt predicate take the current
function - since we care about size in instruction selection for
whether or not to use movw/movt take the function so we can check
the attributes. This required adding the current MachineFunction to
FastISel and propagating through.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212309 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/FastISel.h
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMFastISel.cpp
lib/Target/ARM/ARMISelDAGToDAG.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMSubtarget.cpp
lib/Target/ARM/ARMSubtarget.h
lib/Target/ARM/Thumb2SizeReduction.cpp