From 2c49fc023ee0885c8c577829cd40c00ef48581fc Mon Sep 17 00:00:00 2001 From: Tanya Lattner Date: Fri, 30 May 2003 15:48:23 +0000 Subject: [PATCH] Added support for cloning a trace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6430 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/Utils/Cloning.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/llvm/Transforms/Utils/Cloning.h b/include/llvm/Transforms/Utils/Cloning.h index 7c4148445ca..7fb106bc819 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 cloneTrace(std::vector &origTrace); + #endif