From: Sumant Kowshik Date: Tue, 5 Aug 2003 16:56:59 +0000 (+0000) Subject: Added the declaration of InlineIndirectCalls X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3d9c001af0e3e14559127dd51eedf9f6bff0bffe;p=oota-llvm.git Added the declaration of InlineIndirectCalls git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7601 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Transforms/PoolAllocate.h b/include/llvm/Transforms/PoolAllocate.h index efacf2da530..80afa7bfe0f 100644 --- a/include/llvm/Transforms/PoolAllocate.h +++ b/include/llvm/Transforms/PoolAllocate.h @@ -72,6 +72,8 @@ class PoolAllocate : public Pass { BUDataStructures *BU; TDDataStructures *TDDS; + + hash_set InlinedFuncs; std::map FunctionInfo; @@ -98,7 +100,7 @@ class PoolAllocate : public Pass { // If an equivalence class does not require pool arguments, it is not // on this map. std::map EqClass2LastPoolArg; - + public: bool run(Module &M); @@ -141,6 +143,9 @@ class PoolAllocate : public Pass { void TransformFunctionBody(Function &F, Function &OldF, DSGraph &G, PA::FuncInfo &FI); + + void InlineIndirectCalls(Function &F, DSGraph &G, + hash_set &visited); }; #endif