[llvm-commits] [poolalloc] r111683 - in /poolalloc/trunk: include/dsa/DSGraph.h lib/DSA/DSGraph.cpp
Will Dietz
wdietz2 at illinois.edu
Fri Aug 20 15:05:21 PDT 2010
Author: wdietz2
Date: Fri Aug 20 17:05:21 2010
New Revision: 111683
URL: http://llvm.org/viewvc/llvm-project?rev=111683&view=rev
Log:
Promote functionIsCallable to the DSGraph.h header so it can be used elsewhere.
Modified:
poolalloc/trunk/include/dsa/DSGraph.h
poolalloc/trunk/lib/DSA/DSGraph.cpp
Modified: poolalloc/trunk/include/dsa/DSGraph.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/dsa/DSGraph.h?rev=111683&r1=111682&r2=111683&view=diff
==============================================================================
--- poolalloc/trunk/include/dsa/DSGraph.h (original)
+++ poolalloc/trunk/include/dsa/DSGraph.h Fri Aug 20 17:05:21 2010
@@ -669,6 +669,25 @@
void destroy() { NodeMap.clear(); }
};
+//
+// Function: functionIsCallable()
+//
+// Description:
+// Determine whether the specified function can be a target of the specified
+// call site. We allow the user to configure what we consider to be
+// uncallable at an indirect function call site.
+//
+// Inputs:
+// CS - The call site which calls the function.
+// F - The function that is potentially called by CS.
+//
+// Return value:
+// true - The function F can be called by the call site.
+// false - The function F cannot be called by the call site.
+//
+bool
+functionIsCallable (CallSite CS, const Function* F);
+
} // End llvm namespace
#endif
Modified: poolalloc/trunk/lib/DSA/DSGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DSGraph.cpp?rev=111683&r1=111682&r2=111683&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DSGraph.cpp (original)
+++ poolalloc/trunk/lib/DSA/DSGraph.cpp Fri Aug 20 17:05:21 2010
@@ -1384,7 +1384,7 @@
// true - The function F can be called by the call site.
// false - The function F cannot be called by the call site.
//
-static bool
+bool
functionIsCallable (CallSite CS, const Function* F) {
//Which targets do we choose?
//Conservative: all of them
More information about the llvm-commits
mailing list