llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

tread tsan llvm flags to driver

Open KernelAddress opened this issue 10 years ago • 3 comments

Bugzilla Link 30686
Resolution FIXED
Resolved on Nov 30, 2016 19:07
Version trunk
OS All
CC @eugenis,@kcc,@rnk

Extended Description

ThreadSanitizer (tsan) pass has some internal llvm flags:

static cl::opt ClInstrumentMemoryAccesses( "tsan-instrument-memory-accesses", cl::init(true), cl::desc("Instrument memory accesses"), cl::Hidden); static cl::opt ClInstrumentFuncEntryExit( "tsan-instrument-func-entry-exit", cl::init(true), cl::desc("Instrument function entry and exit"), cl::Hidden); static cl::opt ClInstrumentAtomics( "tsan-instrument-atomics", cl::init(true), cl::desc("Instrument atomics"), cl::Hidden); static cl::opt ClInstrumentMemIntrinsics( "tsan-instrument-memintrinsics", cl::init(true), cl::desc("Instrument memintrinsics (memset/memcpy/memmove)"), cl::Hidden);

They are useful for instrumentation of some special source files. E.g. not instrumenting memory accesses to get rid of massive known race reports; not instrumenting very performance-critical code; not instrumenting atomics in home-grown mutex implementation, etc.

Users should not use internal llvm flags, so they should be treaded to driver.

KernelAddress avatar Oct 13 '16 10:10 KernelAddress

Right. Resolving.

llvmbot avatar Dec 01 '16 03:12 llvmbot

Alexey, is this fixed? I saw r286670, but no updates to this bug...

kcc avatar Dec 01 '16 00:12 kcc

Why are these not blacklist types? That sounds like a strictly better (i.e. more flexible) solution.

eugenis avatar Oct 31 '16 21:10 eugenis