Fixed comment width, changed arg to be const, fixed indentation, removed unnecessary...
[oota-llvm.git] / include / llvm / Transforms / Utils / Cloning.h
index 7c4148445cae1bca95ceb864137c033cbd56421e..8a6b69997c088c771627db8ab0ab9d7a1bc054f1 100644 (file)
@@ -91,4 +91,11 @@ void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
 ///
 bool InlineFunction(CallInst *C);
 
+
+/// CloneTrace - Returns a copy of the specified trace. 
+/// It takes a vector of basic blocks clones the basic blocks, removes internal 
+/// phi nodes, adds it to the same function as the original (although there is 
+/// no jump to it) and returns the new vector of basic blocks.
+std::vector<BasicBlock *> CloneTrace(const std::vector<BasicBlock*> &origTrace);
+
 #endif