diff options
author | Guochun Shi <gshi1@uiuc.edu> | 2003-06-08 23:16:07 +0000 |
---|---|---|
committer | Guochun Shi <gshi1@uiuc.edu> | 2003-06-08 23:16:07 +0000 |
commit | 8f1d4ab409253e665a4cbd92401d345010bdc561 (patch) | |
tree | 63918bddbe36af1d6ecf6a23fcd0da12c48fe912 /lib/CodeGen/ModuloScheduling/ModuloSchedGraph.h | |
parent | 33280524f4882a3e6a7fa011a62595ba3a65c8ec (diff) |
delete useless functions
add comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ModuloScheduling/ModuloSchedGraph.h')
-rw-r--r-- | lib/CodeGen/ModuloScheduling/ModuloSchedGraph.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/lib/CodeGen/ModuloScheduling/ModuloSchedGraph.h b/lib/CodeGen/ModuloScheduling/ModuloSchedGraph.h index 7cdfdd970e..db3a9a31e5 100644 --- a/lib/CodeGen/ModuloScheduling/ModuloSchedGraph.h +++ b/lib/CodeGen/ModuloScheduling/ModuloSchedGraph.h @@ -250,9 +250,6 @@ public: //return wether the BasicBlock 'bb' contains a loop bool isLoop(const BasicBlock *bb); - //return this basibBlock contains a loop - bool isLoop(); - //return the node for the input instruction ModuloSchedGraphNode *getGraphNodeForInst(const Instruction *inst) const { const_iterator onePair = this->find(inst); @@ -293,11 +290,12 @@ public: using map_base::begin; using map_base::end; - void noteModuloSchedGraphNodeForInst(const Instruction *inst, - ModuloSchedGraphNode *node) - { + void addHash(const Instruction *inst, + ModuloSchedGraphNode *node){ + assert((*this)[inst] == NULL); (*this)[inst] = node; + } // Graph builder @@ -308,10 +306,7 @@ public: // Build nodes for BasicBlock void buildNodesforBB(const TargetMachine &target, - const BasicBlock *bb, - NodeVec &memNode, - RegToRefVecMap ®ToRefVecMap, - ValueToDefVecMap &valueToDefVecMap); + const BasicBlock *bb); //find definitiona and use information for all nodes void findDefUseInfoAtInstr(const TargetMachine &target, @@ -329,9 +324,6 @@ public: //add memory dependence dges void addMemEdges(const BasicBlock *bb); - //add dummy edges - void addDummyEdges(); - //computer source restrictoin II int computeResII(const BasicBlock *bb); |