diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-27 06:56:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-27 06:56:12 +0000 |
commit | f57b845547302d24ecb6a9e79d7bc386f761a6c9 (patch) | |
tree | 369bc5be013a3a6d0373dbf26820d701e01c5297 /include/llvm/Transforms/FunctionInlining.h | |
parent | f2361c5e5c2917e6f19a55927b221d8671753a40 (diff) |
* Rename MethodPass class to FunctionPass
- Rename runOnMethod to runOnFunction
* Transform getAnalysisUsageInfo into getAnalysisUsage
- Method is now const
- It now takes one AnalysisUsage object to fill in instead of 3 vectors
to fill in
- Pass's now specify which other passes they _preserve_ not which ones
they modify (be conservative!)
- A pass can specify that it preserves all analyses (because it never
modifies the underlying program)
* s/Method/Function/g in other random places as well
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2333 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/FunctionInlining.h')
-rw-r--r-- | include/llvm/Transforms/FunctionInlining.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/llvm/Transforms/FunctionInlining.h b/include/llvm/Transforms/FunctionInlining.h index e321df52f7..08fe9d93a6 100644 --- a/include/llvm/Transforms/FunctionInlining.h +++ b/include/llvm/Transforms/FunctionInlining.h @@ -1,19 +1,19 @@ -//===-- MethodInlining.h - Functions that perform Inlining -------*- C++ -*--=// +//===-- FunctionInlining.h - Functions that perform Inlining -----*- C++ -*--=// // -// This family of functions is useful for performing method inlining. +// This family of functions is useful for performing function inlining. // //===----------------------------------------------------------------------===// -#ifndef LLVM_TRANSFORMS_METHOD_INLINING_H -#define LLVM_TRANSFORMS_METHOD_INLINING_H +#ifndef LLVM_TRANSFORMS_FUNCTION_INLINING_H +#define LLVM_TRANSFORMS_FUNCTION_INLINING_H #include "llvm/BasicBlock.h" class CallInst; class Pass; -Pass *createMethodInliningPass(); +Pass *createFunctionInliningPass(); -// InlineMethod - This function forcibly inlines the called method into the +// 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. @@ -21,9 +21,9 @@ Pass *createMethodInliningPass(); // 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 -// method by one level. +// function by one level. // -bool InlineMethod(CallInst *C); -bool InlineMethod(BasicBlock::iterator CI); // *CI must be CallInst +bool InlineFunction(CallInst *C); +bool InlineFunction(BasicBlock::iterator CI); // *CI must be CallInst #endif |