projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c66c35
)
Add a constructor that got lost
author
Chris Lattner
<sabre@nondot.org>
Sat, 1 May 2004 11:17:13 +0000
(11:17 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 1 May 2004 11:17:13 +0000
(11:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13297
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/TargetSchedInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/TargetSchedInfo.cpp
b/lib/Target/TargetSchedInfo.cpp
index a4a27e7103fe06592f036ea07a67926a50fe5d55..1f5a57d10ca06dbe03ab8542383fa8feee98ec54 100644
(file)
--- a/
lib/Target/TargetSchedInfo.cpp
+++ b/
lib/Target/TargetSchedInfo.cpp
@@
-19,6
+19,9
@@
namespace llvm {
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