LLVM  6.0.0svn
Macros | Typedefs | Functions | Variables
BoundsChecking.cpp File Reference
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Analysis/MemoryBuiltins.h"
#include "llvm/Analysis/TargetFolder.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/Value.h"
#include "llvm/Pass.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Transforms/Instrumentation.h"
#include <cstdint>
#include <vector>
Include dependency graph for BoundsChecking.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "bounds-checking"
 

Typedefs

using BuilderTy = IRBuilder< TargetFolder >
 

Functions

 STATISTIC (ChecksAdded, "Bounds checks added")
 
 STATISTIC (ChecksSkipped, "Bounds checks skipped")
 
 STATISTIC (ChecksUnable, "Bounds checks unable to add")
 
 INITIALIZE_PASS (BoundsChecking, "bounds-checking", "Run-time bounds checking", false, false) BasicBlock *BoundsChecking
 getTrapBB - create a basic block that traps. More...
 

Variables

static cl::opt< boolSingleTrapBB ("bounds-checking-single-trap", cl::desc("Use one trap block per function"))
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "bounds-checking"

Definition at line 43 of file BoundsChecking.cpp.

Typedef Documentation

◆ BuilderTy

Definition at line 52 of file BoundsChecking.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( BoundsChecking  ,
"bounds-checking"  ,
"Run-time bounds checking"  ,
false  ,
false   
)

◆ STATISTIC() [1/3]

STATISTIC ( ChecksAdded  ,
"Bounds checks added"   
)

◆ STATISTIC() [2/3]

STATISTIC ( ChecksSkipped  ,
"Bounds checks skipped"   
)

◆ STATISTIC() [3/3]

STATISTIC ( ChecksUnable  ,
"Bounds checks unable to add"   
)

Variable Documentation

◆ SingleTrapBB

cl::opt<bool> SingleTrapBB("bounds-checking-single-trap", cl::desc("Use one trap block per function"))
static

Referenced by INITIALIZE_PASS().