Commit cd38f3f
authored
[DevTSAN] Support thread sanitizer for device offloading in TSAN pass (#17181)
This PR is going to support thread sanitizer for device offloading (IR
part)
1.defined a new class 'ThreadSanitizerOnSpirv' to do SPIR-V specific
instrumentation.
2.added an extra argument '__tsan_launch' to each spir kernels.
3.disable inserting module ctor for kernel code.
4.created a new global '__TsanKernelMetadata' to record spir kernels'
information.1 parent e31ff53 commit cd38f3f
4 files changed
Lines changed: 446 additions & 7 deletions
File tree
- .github
- llvm
- lib/Transforms/Instrumentation
- test/Instrumentation/ThreadSanitizer/SPIRV
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
| 202 | + | |
200 | 203 | | |
201 | 204 | | |
0 commit comments