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:
8f6c6d4
)
Add a version of NewSUnit for creating units with MachineInstrs.
author
Dan Gohman
<gohman@apple.com>
Fri, 14 Nov 2008 00:41:36 +0000
(
00:41
+0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 14 Nov 2008 00:41:36 +0000
(
00:41
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59282
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/ScheduleDAG.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/ScheduleDAG.h
b/include/llvm/CodeGen/ScheduleDAG.h
index 125f8eaa8cefba552fe7c505813e586f07321282..8445432e8ebdda46e378e92ffc54a751b84c9d47 100644
(file)
--- a/
include/llvm/CodeGen/ScheduleDAG.h
+++ b/
include/llvm/CodeGen/ScheduleDAG.h
@@
-334,6
+334,14
@@
namespace llvm {
return &SUnits.back();
}
+ /// NewSUnit - Creates a new SUnit and return a ptr to it.
+ ///
+ SUnit *NewSUnit(MachineInstr *MI) {
+ SUnits.push_back(SUnit(MI, (unsigned)SUnits.size()));
+ SUnits.back().OrigNode = &SUnits.back();
+ return &SUnits.back();
+ }
+
/// Clone - Creates a clone of the specified SUnit. It does not copy the
/// predecessors / successors info nor the temporary scheduling states.
SUnit *Clone(SUnit *N);