Home
last modified time | relevance | path

Searched refs:asan (Results 1 – 25 of 88) sorted by relevance

1234

/external/llvm/test/Instrumentation/AddressSanitizer/
Dinstrumentation-with-call-threshold.ll1 ; Test asan internal compiler flags:
2 ; -asan-instrumentation-with-call-threshold
3 ; -asan-memory-access-callback-prefix
5 ; RUN: opt < %s -asan -asan-module -asan-instrumentation-with-call-threshold=1 -S | FileCheck %s --…
6 ; RUN: opt < %s -asan -asan-module -asan-instrumentation-with-call-threshold=0 -S | FileCheck %s --…
7 ; RUN: opt < %s -asan -asan-module -asan-instrumentation-with-call-threshold=0 -asan-memory-access-…
8 ; RUN: opt < %s -asan -asan-module -asan-instrumentation-with-call-threshold=5 -S | FileCheck %s --…
9 ; RUN: opt < %s -asan -asan-module -S | FileCheck %s --check-prefix=CHECK-INLINE
Dinstrument-dynamic-allocas.ll1 ; Test asan internal compiler flags:
2 ; -asan-instrument-allocas=1
4 ; RUN: opt < %s -asan -asan-module -asan-instrument-allocas=1 -S | FileCheck %s --check-prefix=CHEC…
5 ; RUN: opt < %s -asan -asan-module -asan-instrument-allocas=0 -S | FileCheck %s --check-prefix=CHEC…
6 ; RUN: opt < %s -asan -asan-module -S | FileCheck %s --check-prefix=CHECK-NOALLOCA
Dinstrument_load_then_store.ll2 ; RUN: opt < %s -asan -asan-module -S -asan-opt=1 | FileCheck %s -check-prefix=OPT1
3 ; RUN: opt < %s -asan -asan-module -S -asan-opt=0 | FileCheck %s -check-prefix=OPT0
19 ; OPT1: asan.module_ctor
25 ; OPT0: asan.module_ctor
Dstack-poisoning.ll1 ; RUN: opt < %s -asan -asan-module -asan-use-after-return -S | FileCheck --check-prefix=CHECK-UAR %s
2 ; RUN: opt < %s -asan -asan-module -asan-use-after-return=0 -S | FileCheck --check-prefix=CHECK-PLA…
Dglobal_metadata.ll1 ; RUN: opt < %s -asan -asan-module -S | FileCheck %s
20 ; CHECK: [[FILENAME:@__asan_gen_[0-9]+]] = private unnamed_addr constant [22 x i8] c"/tmp/asan-glob…
53 !llvm.asan.globals = !{!0, !1, !2, !3, !4}
64 !6 = !{!"/tmp/asan-globals.cpp", i32 5, i32 5}
65 !7 = !{!"/tmp/asan-globals.cpp", i32 7, i32 5}
66 !8 = !{!"/tmp/asan-globals.cpp", i32 12, i32 14}
67 !9 = !{!"/tmp/asan-globals.cpp", i32 14, i32 25}
Dfreebsd.ll1 ; RUN: opt < %s -asan -asan-module -S \
6 ; RUN: opt < %s -asan -asan-module -S \
Dlifetime-uar.ll2 ; RUN: opt < %s -asan -asan-module -asan-use-after-return -asan-check-lifetime -S | FileCheck %s
Dstack_layout.ll3 ; RUN: opt < %s -asan -asan-module -asan-stack-dynamic-alloca=0 -S \
5 ; RUN: opt < %s -asan -asan-module -asan-stack-dynamic-alloca=1 -S \
Ddo-not-instrument-llvm-metadata.ll2 ; RUN: opt < %s -asan -asan-module -S | FileCheck %s
12 ; CHECK: @asan.module_ctor
Dstack_dynamic_alloca.ll1 ; RUN: opt < %s -asan -asan-module -asan-stack-dynamic-alloca \
2 ; RUN: -asan-use-after-return -S | FileCheck %s
Ddo-not-instrument-promotable-allocas.ll1 ; RUN: opt < %s -asan -asan-module -asan-instrument-allocas=1 -S | FileCheck %s --check-prefix=CHECK
Ddo-not-touch-odr-global.ll3 ; RUN: opt < %s -asan -asan-module -S | FileCheck %s
11 ; CHECK: @asan.module_ctor
Dundecidable-dynamic-alloca-1.ll3 ; RUN: opt < %s -asan -asan-module -asan-instrument-allocas=1 -S | FileCheck %s
Ddo-not-touch-comdat-global.ll3 ; RUN: opt < %s -asan -asan-module -S | FileCheck %s
14 ; CHECK: @asan.module_ctor
Dinstrument_global.ll1 ; RUN: opt < %s -asan -asan-module -S | FileCheck %s
71 !llvm.asan.globals = !{!0}
74 ; CHECK-LABEL: define internal void @asan.module_ctor
79 ; CHECK-LABEL: define internal void @asan.module_dtor
Dexperiment-call.ll2 ; -asan-force-experiment flag turns all memory accesses into experiments.
3 ; RUN: opt < %s -asan -asan-module -asan-force-experiment=42 -asan-instrumentation-with-call-thresh…
Dinstrument-stack.ll2 ; RUN: opt < %s -asan -asan-module -asan-opt-stack -S | FileCheck %s
Ddo-not-instrument-cstring.ll1 ; RUN: opt < %s -asan -asan-module -S | FileCheck %s
Ddo-not-touch-threadlocal.ll1 ; RUN: opt < %s -asan -asan-module -S | FileCheck %s
Dexperiment.ll2 ; -asan-force-experiment flag turns all memory accesses into experiments.
3 ; RUN: opt < %s -asan -asan-module -asan-force-experiment=42 -S | FileCheck %s
/external/compiler-rt/lib/asan/
DCMakeLists.txt90 add_custom_target(asan) target
102 add_dependencies(asan clang_rt.asan_${os}_dynamic)
114 add_compiler_rt_runtime(clang_rt.asan-${arch} ${arch} STATIC
120 add_dependencies(asan clang_rt.asan-${arch})
127 add_dependencies(asan clang_rt.asan_cxx-${arch})
129 add_compiler_rt_runtime(clang_rt.asan-preinit-${arch} ${arch} STATIC
133 add_dependencies(asan clang_rt.asan-preinit-${arch})
138 set(SHARED_ASAN_NAME clang_rt.asan-${arch}${COMPILER_RT_OS_SUFFIX})
140 add_compiler_rt_runtime(clang_rt.asan-dynamic-${arch} ${arch} SHARED
147 target_link_libraries(clang_rt.asan-dynamic-${arch} ${ASAN_DYNAMIC_LIBS})
[all …]
DAndroid.mk115 -fsanitize-blacklist=external/compiler-rt/lib/asan/tests/asan_test.ignore \
145 define build-asan-rt-shared-library
174 $(eval $(call build-asan-rt-shared-library,$(ADDRESS_SANITIZER_RUNTIME_LIBRARY),64))
175 $(eval $(call build-asan-rt-shared-library,$(2ND_ADDRESS_SANITIZER_RUNTIME_LIBRARY),32))
177 $(eval $(call build-asan-rt-shared-library,$(ADDRESS_SANITIZER_RUNTIME_LIBRARY),32))
202 external/compiler-rt/lib/asan/tests \
230 external/compiler-rt/lib/asan/tests \
282 external/compiler-rt/lib/asan/tests \
306 external/compiler-rt/lib/asan/tests \
/external/llvm/test/DebugInfo/COFF/
Dasan-module-without-functions.ll5 ; D:\asan.c:
12 ; ModuleID = 'asan.c'
17 … appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 1, void ()* @asan.module_ctor }]
18 @__asan_gen_ = private constant [7 x i8] c"asan.c\00", align 1
21 … appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 1, void ()* @asan.module_dtor }]
23 define internal void @asan.module_ctor() {
39 define internal void @asan.module_dtor() {
49 !1 = !MDFile(filename: "asan.c", directory: "D:\5C")
Dasan-module-ctor.ll5 ; D:\asan.c:
20 ; ModuleID = 'asan.c'
24 … appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 1, void ()* @asan.module_ctor }]
32 define internal void @asan.module_ctor() {
86 !1 = !MDFile(filename: "asan.c", directory: "D:\5C")
90 !5 = !MDFile(filename: "asan.c", directory: "D:C")
/external/compiler-rt/test/asan/
DCMakeLists.txt59 list(APPEND ASAN_TEST_DEPS asan)
86 add_lit_testsuite(check-asan "Running the AddressSanitizer tests"
89 set_target_properties(check-asan PROPERTIES FOLDER "ASan tests")
92 # Add check-dynamic-asan target. It is a part of check-all only on Windows,
97 add_lit_testsuite(check-asan-dynamic
101 set_target_properties(check-asan-dynamic

1234