diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 18:14:24 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 18:14:24 +0000 |
commit | 1b056e9e5a740e9fba22542d1a0b5fb8054e564f (patch) | |
tree | 994d7597c2fabb1c719dd724c1eb7d3c709c9330 /llvm/tools/llvmc2/CompilationGraph.h | |
parent | 3a2f5c423e4f5ee8938984a3d88e3ff430c3cb25 (diff) | |
download | bcm5719-llvm-1b056e9e5a740e9fba22542d1a0b5fb8054e564f.tar.gz bcm5719-llvm-1b056e9e5a740e9fba22542d1a0b5fb8054e564f.zip |
Add weights to graph edges. Choose between edges based on their weight.
llvm-svn: 50757
Diffstat (limited to 'llvm/tools/llvmc2/CompilationGraph.h')
-rw-r--r-- | llvm/tools/llvmc2/CompilationGraph.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/tools/llvmc2/CompilationGraph.h b/llvm/tools/llvmc2/CompilationGraph.h index 4692e5155d7..3dc8bc06232 100644 --- a/llvm/tools/llvmc2/CompilationGraph.h +++ b/llvm/tools/llvmc2/CompilationGraph.h @@ -35,8 +35,7 @@ namespace llvmc { virtual ~Edge() {}; const std::string& ToolName() const { return ToolName_; } - virtual bool isEnabled() const = 0; - virtual bool isDefault() const = 0; + virtual unsigned Weight() const = 0; private: std::string ToolName_; }; @@ -45,8 +44,7 @@ namespace llvmc { class SimpleEdge : public Edge { public: SimpleEdge(const std::string& T) : Edge(T) {} - bool isEnabled() const { return false;} - bool isDefault() const { return true;} + unsigned Weight() const { return 1; } }; // A node of the compilation graph. |