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:
9604416
)
Added support for cloning a trace.
author
Tanya Lattner
<tonic@nondot.org>
Fri, 30 May 2003 15:48:23 +0000
(15:48 +0000)
committer
Tanya Lattner
<tonic@nondot.org>
Fri, 30 May 2003 15:48:23 +0000
(15:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6430
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Transforms/Utils/Cloning.h
patch
|
blob
|
history
diff --git
a/include/llvm/Transforms/Utils/Cloning.h
b/include/llvm/Transforms/Utils/Cloning.h
index 7c4148445cae1bca95ceb864137c033cbd56421e..7fb106bc8191417d7e8a9c7e887ba9b16141ea20 100644
(file)
--- a/
include/llvm/Transforms/Utils/Cloning.h
+++ b/
include/llvm/Transforms/Utils/Cloning.h
@@
-91,4
+91,11
@@
void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
///
bool InlineFunction(CallInst *C);
+
+/// CloneTrace - Returns a copy of the specified trace. It removes internal phi
+/// nodes, copies the basic blocks, remaps variables, and returns a new vector
+/// of basic blocks (the cloned trace).
+///
+std::vector<BasicBlock *> cloneTrace(std::vector<BasicBlock*> &origTrace);
+
#endif