Allow subtarget selection of the default MachineScheduler and document the interface.
authorAndrew Trick <atrick@apple.com>
Fri, 20 Sep 2013 05:14:41 +0000 (05:14 +0000)
committerAndrew Trick <atrick@apple.com>
Fri, 20 Sep 2013 05:14:41 +0000 (05:14 +0000)
commitf45edcc3818757234c20d4d5975c0b992bf1f95e
tree4f62dfd90f52ba9e575d802aaf4c977a38c8012b
parentc87f9488b851335fc92b48e9a15ee98df29b0def
Allow subtarget selection of the default MachineScheduler and document the interface.

The global registry is used to allow command line override of the
scheduler selection, but does not work well as the normal selection
API. For example, the same LLVM process should be able to target
multiple targets or subtargets.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191071 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineScheduler.h
include/llvm/CodeGen/Passes.h
lib/CodeGen/MachineScheduler.cpp
lib/Target/Hexagon/HexagonTargetMachine.cpp
lib/Target/R600/AMDGPUSubtarget.h
lib/Target/R600/AMDGPUTargetMachine.cpp