aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Transforms/Utils/Cloning.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Cloning.h b/include/llvm/Transforms/Utils/Cloning.h
index 7c4148445c..7fb106bc81 100644
--- 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