diff options
author | Tanya Lattner <tonic@nondot.org> | 2003-05-30 15:48:23 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2003-05-30 15:48:23 +0000 |
commit | 2c49fc023ee0885c8c577829cd40c00ef48581fc (patch) | |
tree | 1025b63aa5b1f130363c222ebe1f8e1c45dca812 /include/llvm/Transforms/Utils | |
parent | 9604416192ed6add7c2b0d32dbb18174fe319e06 (diff) | |
download | llvm-2c49fc023ee0885c8c577829cd40c00ef48581fc.tar.gz llvm-2c49fc023ee0885c8c577829cd40c00ef48581fc.tar.bz2 llvm-2c49fc023ee0885c8c577829cd40c00ef48581fc.tar.xz |
Added support for cloning a trace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils')
-rw-r--r-- | include/llvm/Transforms/Utils/Cloning.h | 7 |
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 |