2021-10-05 04:31:18 +08:00
|
|
|
; RUN: opt < %s -dfsan -dfsan-abilist=%S/Inputs/abilist.txt -S | FileCheck %s
|
2021-03-04 10:03:04 +08:00
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
2021-03-04 04:30:20 +08:00
|
|
|
|
|
|
|
; CHECK: @__dfsan_shadow_width_bits = weak_odr constant i32 [[#SBITS:]]
|
|
|
|
; CHECK: @__dfsan_shadow_width_bytes = weak_odr constant i32 [[#SBYTES:]]
|
2018-03-31 02:37:55 +08:00
|
|
|
|
|
|
|
define internal i8 @uninstrumented_internal_fun(i8 %in) {
|
|
|
|
ret i8 %in
|
|
|
|
}
|
|
|
|
|
|
|
|
define i8 @call_uninstrumented_internal_fun(i8 %in) {
|
|
|
|
%call = call i8 @uninstrumented_internal_fun(i8 %in)
|
|
|
|
ret i8 %call
|
|
|
|
}
|
2021-10-05 04:31:18 +08:00
|
|
|
; CHECK: define internal i8 @"dfsw$uninstrumented_internal_fun"
|
2018-03-31 02:37:55 +08:00
|
|
|
|
|
|
|
define private i8 @uninstrumented_private_fun(i8 %in) {
|
|
|
|
ret i8 %in
|
|
|
|
}
|
|
|
|
|
|
|
|
define i8 @call_uninstrumented_private_fun(i8 %in) {
|
|
|
|
%call = call i8 @uninstrumented_private_fun(i8 %in)
|
|
|
|
ret i8 %call
|
|
|
|
}
|
2021-10-05 04:31:18 +08:00
|
|
|
; CHECK: define private i8 @"dfsw$uninstrumented_private_fun"
|