Home | History | Annotate | Download | only in Instrumentation

Lines Matching refs:AddressSanitizer

1 //===-- AddressSanitizer.cpp - memory error detector ------------*- C++ -*-===//
10 // This file is a part of AddressSanitizer, an address sanity checker.
405 /// AddressSanitizer: instrument the code in module to find memory bugs.
406 struct AddressSanitizer : public FunctionPass {
407 explicit AddressSanitizer(bool CompileKernel = false, bool Recover = false)
473 AddressSanitizer *Pass;
474 FunctionStateRAII(AddressSanitizer *Pass) : Pass(Pass) {
552 AddressSanitizer &ASan;
591 FunctionStackPoisoner(Function &F, AddressSanitizer &ASan)
751 char AddressSanitizer::ID = 0;
753 AddressSanitizer, "asan",
754 "AddressSanitizer: detects use-after-free and out-of-bounds bugs.", false,
759 AddressSanitizer, "asan",
760 "AddressSanitizer: detects use-after-free and out-of-bounds bugs.", false,
765 return new AddressSanitizer(CompileKernel, Recover);
771 "AddressSanitizer: detects use-after-free and out-of-bounds bugs."
821 Value *AddressSanitizer::memToShadow(Value *Shadow, IRBuilder<> &IRB) {
833 void AddressSanitizer::instrumentMemIntrinsic(MemIntrinsic *MI) {
852 bool AddressSanitizer::isInterestingAlloca(AllocaInst &AI) {
875 Value *AddressSanitizer::isInterestingMemoryAccess(Instruction *I,
939 bool AddressSanitizer::GlobalIsLinkerInitialized(GlobalVariable *G) {
946 void AddressSanitizer::instrumentPointerComparisonOrSubtraction(
958 void AddressSanitizer::instrumentMop(ObjectSizeOffsetVisitor &ObjSizeVis,
1017 Instruction *AddressSanitizer::generateCrashCode(Instruction *InsertBefore,
1048 Value *AddressSanitizer::createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong,
1066 void AddressSanitizer::instrumentAddress(Instruction *OrigIns,
1128 void AddressSanitizer::instrumentUnusualSizeOrAlignment(
1449 void AddressSanitizer::initializeCallbacks(Module &M) {
1509 bool AddressSanitizer::doInitialization(Module &M) {
1530 bool AddressSanitizer::doFinalization(Module &M) {
1535 bool AddressSanitizer::maybeInsertAsanInitAtFunctionEntry(Function &F) {
1551 void AddressSanitizer::markEscapedLocalAllocas(Function &F) {
1579 bool AddressSanitizer::runOnFunction(Function &F) {
1696 bool AddressSanitizer::LooksLikeCodeInBug11395(Instruction *I) {
2151 bool AddressSanitizer::isSafeAccess(ObjectSizeOffsetVisitor &ObjSizeVis,