From 1472955eab0c25225aa17e55f5b3f797ca81a9fc Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 14 Nov 2008 21:47:58 +0000 Subject: Add support for building a ScheduleDAG from MachineInstrs. This is currently fairly conservative; it doesn't do alias-analysis queries and it doesn't attempt to break anti-dependencies. llvm-svn: 59324 --- llvm/include/llvm/CodeGen/ScheduleDAG.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/include') diff --git a/llvm/include/llvm/CodeGen/ScheduleDAG.h b/llvm/include/llvm/CodeGen/ScheduleDAG.h index 8445432e8eb..7c32205163a 100644 --- a/llvm/include/llvm/CodeGen/ScheduleDAG.h +++ b/llvm/include/llvm/CodeGen/ScheduleDAG.h @@ -439,6 +439,11 @@ namespace llvm { /// and if it has live ins that need to be copied into vregs, emit the /// copies into the top of the block. void EmitLiveInCopies(MachineBasicBlock *MBB); + + /// BuildSchedUnitsFromMBB - Build SUnits from the MachineBasicBlock. + /// This SUnit graph is similar to the pre-regalloc SUnit graph, but represents + /// MachineInstrs directly instead of SDNodes. + void BuildSchedUnitsFromMBB(); }; /// createBURRListDAGScheduler - This creates a bottom up register usage -- cgit v1.2.3