diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-05-30 17:16:20 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-05-30 17:16:20 +0000 |
commit | babf11f249c7c6399c66f2567d4e7efa9c37a9c3 (patch) | |
tree | 816778a63435b4ba76dc9c06038b28739fcf38f1 /include/llvm/Transforms | |
parent | 33540adca55b95a5fdbb0dc783ded319a90b4bc1 (diff) | |
download | external_llvm-babf11f249c7c6399c66f2567d4e7efa9c37a9c3.zip external_llvm-babf11f249c7c6399c66f2567d4e7efa9c37a9c3.tar.gz external_llvm-babf11f249c7c6399c66f2567d4e7efa9c37a9c3.tar.bz2 |
Patches for building llvm on Solaris x86. Contributed by Nathan Keynes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/IPO/InlinerPass.h | 4 | ||||
-rw-r--r-- | include/llvm/Transforms/Utils/Cloning.h | 2 | ||||
-rw-r--r-- | include/llvm/Transforms/Utils/InlineCost.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Transforms/IPO/InlinerPass.h b/include/llvm/Transforms/IPO/InlinerPass.h index d34641d..3a2b36c 100644 --- a/include/llvm/Transforms/IPO/InlinerPass.h +++ b/include/llvm/Transforms/IPO/InlinerPass.h @@ -53,12 +53,12 @@ struct Inliner : public CallGraphSCCPass { /// returned is greater than the current inline threshold, the call site is /// not inlined. /// - virtual int getInlineCost(CallSite CS) = 0; + virtual int getInlineCost(CallSite cs) = 0; // getInlineFudgeFactor - Return a > 1.0 factor if the inliner should use a // higher threshold to determine if the function call should be inlined. /// - virtual float getInlineFudgeFactor(CallSite CS) = 0; + virtual float getInlineFudgeFactor(CallSite cs) = 0; private: // InlineThreshold - Cache the value here for easy access. diff --git a/include/llvm/Transforms/Utils/Cloning.h b/include/llvm/Transforms/Utils/Cloning.h index 1e2bbaa..2de66e4 100644 --- a/include/llvm/Transforms/Utils/Cloning.h +++ b/include/llvm/Transforms/Utils/Cloning.h @@ -184,7 +184,7 @@ std::vector<BasicBlock *> CloneTrace(const std::vector<BasicBlock*> &origTrace); /// bool InlineFunction(CallInst *C, CallGraph *CG = 0, const TargetData *TD = 0); bool InlineFunction(InvokeInst *II, CallGraph *CG = 0, const TargetData *TD =0); -bool InlineFunction(CallSite CS, CallGraph *CG = 0, const TargetData *TD = 0); +bool InlineFunction(CallSite cs, CallGraph *CG = 0, const TargetData *TD = 0); } // End llvm namespace diff --git a/include/llvm/Transforms/Utils/InlineCost.h b/include/llvm/Transforms/Utils/InlineCost.h index 6018a80..b56678b 100644 --- a/include/llvm/Transforms/Utils/InlineCost.h +++ b/include/llvm/Transforms/Utils/InlineCost.h @@ -77,12 +77,12 @@ namespace llvm { // getInlineCost - The heuristic used to determine if we should inline the // function call or not. // - int getInlineCost(CallSite CS, + int getInlineCost(CallSite cs, SmallPtrSet<const Function *, 16> &NeverInline); // getInlineFudgeFactor - Return a > 1.0 factor if the inliner should use a // higher threshold to determine if the function call should be inlined. - float getInlineFudgeFactor(CallSite CS); + float getInlineFudgeFactor(CallSite cs); }; } |