[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/Cloning.h

Chris Lattner lattner at cs.uiuc.edu
Thu May 29 10:07:02 PDT 2003


Changes in directory llvm/include/llvm/Transforms/Utils:

Cloning.h updated: 1.5 -> 1.6

---
Log message:

Doxygenify comments


---
Diffs of the changes:

Index: llvm/include/llvm/Transforms/Utils/Cloning.h
diff -u llvm/include/llvm/Transforms/Utils/Cloning.h:1.5 llvm/include/llvm/Transforms/Utils/Cloning.h:1.6
--- llvm/include/llvm/Transforms/Utils/Cloning.h:1.5	Thu Apr 17 22:49:22 2003
+++ llvm/include/llvm/Transforms/Utils/Cloning.h	Thu May 29 10:06:40 2003
@@ -68,28 +68,27 @@
   return CloneFunction(F, ValueMap);
 }
 
-// Clone OldFunc into NewFunc, transforming the old arguments into references to
-// ArgMap values.  Note that if NewFunc already has basic blocks, the ones
-// cloned into it will be added to the end of the function.  This function fills
-// in a list of return instructions, and can optionally append the specified
-// suffix to all values cloned.
-//
+/// Clone OldFunc into NewFunc, transforming the old arguments into references
+/// to ArgMap values.  Note that if NewFunc already has basic blocks, the ones
+/// cloned into it will be added to the end of the function.  This function
+/// fills in a list of return instructions, and can optionally append the
+/// specified suffix to all values cloned.
+///
 void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
                        std::map<const Value*, Value*> &ValueMap,
                        std::vector<ReturnInst*> &Returns,
                        const char *NameSuffix = "");
 
 
-// InlineFunction - This function forcibly inlines the called function into the
-// basic block of the caller.  This returns true if it is not possible to inline
-// this call.  The program is still in a well defined state if this occurs 
-// though.
-//
-// Note that this only does one level of inlining.  For example, if the 
-// instruction 'call B' is inlined, and 'B' calls 'C', then the call to 'C' now 
-// exists in the instruction stream.  Similiarly this will inline a recursive
-// function by one level.
-//
+/// InlineFunction - This function inlines the called function into the basic
+/// block of the caller.  This returns true if it is not possible to inline this
+/// call.  The program is still in a well defined state if this occurs though.
+///
+/// Note that this only does one level of inlining.  For example, if the 
+/// instruction 'call B' is inlined, and 'B' calls 'C', then the call to 'C' now
+/// exists in the instruction stream.  Similiarly this will inline a recursive
+/// function by one level.
+///
 bool InlineFunction(CallInst *C);
 
 #endif





More information about the llvm-commits mailing list