mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
add a new pass to instrument loads and stores for run-time bounds checking
move EmitGEPOffset from InstCombine to Transforms/Utils/Local.h (a draft of this) patch reviewed by Andrew, thanks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157261 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -325,6 +325,14 @@ Pass *createLowerAtomicPass();
|
||||
//
|
||||
Pass *createCorrelatedValuePropagationPass();
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// 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);
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// ObjCARCAPElim - ObjC ARC autorelease pool elimination.
|
||||
|
Reference in New Issue
Block a user