forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HWASan] remove incorrectly inferred attributes (llvm#106565)
assume all functions used in a HWASan module potentially touch shadow memory (and short granules).
- Loading branch information
Showing
9 changed files
with
437 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
156 changes: 80 additions & 76 deletions
156
llvm/test/Instrumentation/HWAddressSanitizer/RISCV/alloca.ll
Large diffs are not rendered by default.
Oops, something went wrong.
270 changes: 134 additions & 136 deletions
270
llvm/test/Instrumentation/HWAddressSanitizer/RISCV/basic.ll
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
; Standard library functions get inferred attributes, some of which are not | ||
; correct when building for HWASan. | ||
|
||
; RUN: opt < %s -passes=hwasan -S | FileCheck %s --check-prefixes=CHECK | ||
|
||
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" | ||
target triple = "aarch64--linux-android10000" | ||
|
||
declare float @frexpf(float noundef, ptr nocapture noundef) local_unnamed_addr #0 | ||
|
||
attributes #0 = { mustprogress nofree nounwind willreturn memory(argmem: write) "frame-pointer"="non-leaf" "hwasan-abi"="interceptor" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+fix-cortex-a53-835769,+fp-armv8,+neon,+outline-atomics,+tagged-globals,+v8a" } | ||
|
||
; CHECK-NOT: memory(argmem: write) | ||
; CHECK: nobuiltin |
208 changes: 104 additions & 104 deletions
208
llvm/test/Instrumentation/HWAddressSanitizer/basic.ll
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters