[llvm-commits] [poolalloc] r131131 - in /poolalloc/trunk/lib: DSA/StdLibPass.cpp PoolAllocate/PASimple.cpp PoolAllocate/TransformFunctionBody.cpp
John Criswell
criswell at uiuc.edu
Tue May 10 09:20:40 PDT 2011
Author: criswell
Date: Tue May 10 11:20:40 2011
New Revision: 131131
URL: http://llvm.org/viewvc/llvm-project?rev=131131&view=rev
Log:
Added support for inserting pools into the Cif run-time functions.
Added support to DSA for analyzing the Cif run-time functions.
Modified:
poolalloc/trunk/lib/DSA/StdLibPass.cpp
poolalloc/trunk/lib/PoolAllocate/PASimple.cpp
poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp
Modified: poolalloc/trunk/lib/DSA/StdLibPass.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/StdLibPass.cpp?rev=131131&r1=131130&r2=131131&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/StdLibPass.cpp (original)
+++ poolalloc/trunk/lib/DSA/StdLibPass.cpp Tue May 10 11:20:40 2011
@@ -266,6 +266,9 @@
{"sc.pool_unregister", {NRET_NARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
{"sc.pool_argvregister", {NRET_NARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
+ // CIF Intrinsics
+ {"__if_pool_get_label", {NRET_NARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
+ {"__if_pool_set_label", {NRET_NARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
// CStdLib Runtime Wrapper Functions
{"pool_strncpy", {NRET_NNYARGS, YRET_NNYARGS, NRET_NARGS, YRET_NNYARGS, true}},
{"pool_strcpy", {NRET_NNYARGS, YRET_NNYARGS, NRET_NARGS, YRET_NNYARGS, true}},
Modified: poolalloc/trunk/lib/PoolAllocate/PASimple.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/PASimple.cpp?rev=131131&r1=131130&r2=131131&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PASimple.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PASimple.cpp Tue May 10 11:20:40 2011
@@ -99,7 +99,9 @@
(funcname == "sc.pool_unregister_global") ||
(funcname == "sc.pool_register") ||
(funcname == "sc.pool_unregister") ||
- (funcname == "sc.get_actual_val")) {
+ (funcname == "sc.get_actual_val") ||
+ (funcname == "__if_pool_get_label") ||
+ (funcname == "__if_pool_set_label")) {
return 1;
}
Modified: poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp?rev=131131&r1=131130&r2=131131&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp Tue May 10 11:20:40 2011
@@ -872,7 +872,9 @@
(CF->getName() == "sc.pool_unregister_global") ||
(CF->getName() == "sc.pool_register") ||
(CF->getName() == "sc.pool_unregister") ||
- (CF->getName() == "sc.get_actual_val")) {
+ (CF->getName() == "sc.get_actual_val") ||
+ (CF->getName() == "__if_pool_get_label") ||
+ (CF->getName() == "__if_pool_set_label")) {
visitRuntimeCheck (CS);
} else if ((argc = PAInfo.getCStdLibPoolArguments(CF->getName())) > 0) {
visitCStdLibCheck(CS, argc);
More information about the llvm-commits
mailing list