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)
commitc1058df66f15589012f5e2dc1ab571906778e8cc
tree4e038f2de8ee0011be947a0ad0529641abca247b
parentac90380b5e9ef1c4fa32ab0bee869a0be5ddbea2
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.

llvm-svn: 212309
llvm/include/llvm/CodeGen/FastISel.h
llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
llvm/lib/Target/ARM/ARMFastISel.cpp
llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/ARM/ARMInstrInfo.td
llvm/lib/Target/ARM/ARMSubtarget.cpp
llvm/lib/Target/ARM/ARMSubtarget.h
llvm/lib/Target/ARM/Thumb2SizeReduction.cpp