misched: TargetSchedule interface for machine resources.
authorAndrew Trick <atrick@apple.com>
Tue, 6 Nov 2012 07:10:38 +0000 (07:10 +0000)
committerAndrew Trick <atrick@apple.com>
Tue, 6 Nov 2012 07:10:38 +0000 (07:10 +0000)
commite96390ea9643998e1f69f71f61bad39ebb3e4ab4
tree07547ecbc98d81217b668e399bea3c7171e9ed85
parent4d1fa712ac0e012a02f8b9e0c70eece6ecde9d7e
misched: TargetSchedule interface for machine resources.

Expose the processor resources defined by the machine model to the
scheduler and other clients through the TargetSchedule interface.

Normalize each resource count with respect to other kinds of
resources. This allows scheduling heuristics to balance resources
against other kinds of resources and latency.

llvm-svn: 167444
llvm/include/llvm/CodeGen/ScheduleDAG.h
llvm/include/llvm/CodeGen/ScheduleDAGInstrs.h
llvm/include/llvm/CodeGen/TargetSchedule.h
llvm/include/llvm/MC/MCSchedule.h
llvm/lib/CodeGen/TargetSchedule.cpp