aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Instrumentation.h
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-07-20 22:39:33 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-07-20 22:39:33 +0000
commit78435f6bb7574d3d26f8c5151e2c140c525b7994 (patch)
treef78c9a1e38b094ab49d15ca3bd581805a9b23f58 /include/llvm/Transforms/Instrumentation.h
parente288cd100f86631ec0ade2a85930397a4ea7b21e (diff)
downloadexternal_llvm-78435f6bb7574d3d26f8c5151e2c140c525b7994.zip
external_llvm-78435f6bb7574d3d26f8c5151e2c140c525b7994.tar.gz
external_llvm-78435f6bb7574d3d26f8c5151e2c140c525b7994.tar.bz2
move the bounds checking pass to the instrumentation folder, where it belongs. I dunno why in the world I dropped it in the Scalar folder in the first place.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Instrumentation.h')
-rw-r--r--include/llvm/Transforms/Instrumentation.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h
index bbf3a69..4b0c448 100644
--- a/include/llvm/Transforms/Instrumentation.h
+++ b/include/llvm/Transforms/Instrumentation.h
@@ -38,6 +38,13 @@ ModulePass *createAddressSanitizerPass();
// Insert ThreadSanitizer (race detection) instrumentation
FunctionPass *createThreadSanitizerPass();
+
+// BoundsChecking - This pass instruments the code to perform run-time bounds
+// checking on loads, stores, and other memory intrinsics.
+// Penalty is the maximum run-time that is acceptable for the user.
+//
+FunctionPass *createBoundsCheckingPass(unsigned Penalty = 5);
+
} // End llvm namespace
#endif