Use the function template getSubtarget on the MachineFunction