From 04543e719e53c3ebd6533ef4cb4bdf60c27d658c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 23 Dec 2008 18:36:58 +0000 Subject: Rename BuildSchedUnits to BuildSchedGraph, and refactor the code in ScheduleDAGSDNodes' BuildSchedGraph into separate functions. llvm-svn: 61376 --- llvm/include/llvm/CodeGen/ScheduleDAG.h | 4 ++-- llvm/include/llvm/CodeGen/ScheduleDAGInstrs.h | 4 ++-- llvm/include/llvm/CodeGen/ScheduleDAGSDNodes.h | 13 +++++++++---- 3 files changed, 13 insertions(+), 8 deletions(-) (limited to 'llvm/include') diff --git a/llvm/include/llvm/CodeGen/ScheduleDAG.h b/llvm/include/llvm/CodeGen/ScheduleDAG.h index b90e5254ffd..03d11e2d828 100644 --- a/llvm/include/llvm/CodeGen/ScheduleDAG.h +++ b/llvm/include/llvm/CodeGen/ScheduleDAG.h @@ -442,10 +442,10 @@ namespace llvm { /// void Run(); - /// BuildSchedUnits - Build SUnits and set up their Preds and Succs + /// BuildSchedGraph - Build SUnits and set up their Preds and Succs /// to form the scheduling dependency graph. /// - virtual void BuildSchedUnits() = 0; + virtual void BuildSchedGraph() = 0; /// ComputeLatency - Compute node latency. /// diff --git a/llvm/include/llvm/CodeGen/ScheduleDAGInstrs.h b/llvm/include/llvm/CodeGen/ScheduleDAGInstrs.h index cfea3e08895..96d3f0f212a 100644 --- a/llvm/include/llvm/CodeGen/ScheduleDAGInstrs.h +++ b/llvm/include/llvm/CodeGen/ScheduleDAGInstrs.h @@ -45,9 +45,9 @@ namespace llvm { return &SUnits.back(); } - /// BuildSchedUnits - Build SUnits from the MachineBasicBlock that we are + /// BuildSchedGraph - Build SUnits from the MachineBasicBlock that we are /// input. - virtual void BuildSchedUnits(); + virtual void BuildSchedGraph(); /// ComputeLatency - Compute node latency. /// diff --git a/llvm/include/llvm/CodeGen/ScheduleDAGSDNodes.h b/llvm/include/llvm/CodeGen/ScheduleDAGSDNodes.h index b3ec2807d77..d7f0ea49d48 100644 --- a/llvm/include/llvm/CodeGen/ScheduleDAGSDNodes.h +++ b/llvm/include/llvm/CodeGen/ScheduleDAGSDNodes.h @@ -118,10 +118,11 @@ namespace llvm { virtual SelectionDAG *getDAG() { return DAG; } - /// BuildSchedUnits - Build SUnits from the selection dag that we are input. - /// This SUnit graph is similar to the SelectionDAG, but represents flagged - /// together nodes with a single SUnit. - virtual void BuildSchedUnits(); + /// BuildSchedGraph - Build the SUnit graph from the selection dag that we + /// are input. This SUnit graph is similar to the SelectionDAG, but + /// excludes nodes that aren't interesting to scheduling, and represents + /// flagged together nodes with a single SUnit. + virtual void BuildSchedGraph(); /// ComputeLatency - Compute node latency. /// @@ -189,6 +190,10 @@ namespace llvm { void CreateVirtualRegisters(SDNode *Node, MachineInstr *MI, const TargetInstrDesc &II, DenseMap &VRBaseMap); + + /// BuildSchedUnits, AddSchedEdges - Helper functions for BuildSchedGraph. + void BuildSchedUnits(); + void AddSchedEdges(); }; } -- cgit v1.2.3