[llvm-commits] CVS: llvm/lib/Target/TargetSchedInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat May 1 06:17:06 PDT 2004
Changes in directory llvm/lib/Target:
TargetSchedInfo.cpp updated: 1.15 -> 1.16
---
Log message:
Add a constructor that got lost
---
Diffs of the changes: (+3 -0)
Index: llvm/lib/Target/TargetSchedInfo.cpp
diff -u llvm/lib/Target/TargetSchedInfo.cpp:1.15 llvm/lib/Target/TargetSchedInfo.cpp:1.16
--- llvm/lib/Target/TargetSchedInfo.cpp:1.15 Fri Apr 30 15:39:59 2004
+++ llvm/lib/Target/TargetSchedInfo.cpp Sat May 1 06:17:13 2004
@@ -19,6 +19,9 @@
resourceId_t CPUResource::nextId = 0;
+CPUResource::CPUResource(const std::string& resourceName, int maxUsers)
+ : rname(resourceName), rid(nextId++), maxNumUsers(maxUsers) {}
+
// Check if fromRVec and toRVec have *any* common entries.
// Assume the vectors are sorted in increasing order.
// Algorithm copied from function set_intersection() for sorted ranges
More information about the llvm-commits
mailing list