mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 12:02:58 +02:00
Doxygenify comments
llvm-svn: 6393
This commit is contained in:
parent
1a404de2c8
commit
47842943a5
@ -68,28 +68,27 @@ inline Function *CloneFunction(const Function *F) {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user