1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/bindings/go/llvm
Marco Elver b835b9cf36 [SanitizeCoverage] Add support for NoSanitizeCoverage function attribute
We really ought to support no_sanitize("coverage") in line with other
sanitizers. This came up again in discussions on the Linux-kernel
mailing lists, because we currently do workarounds using objtool to
remove coverage instrumentation. Since that support is only on x86, to
continue support coverage instrumentation on other architectures, we
must support selectively disabling coverage instrumentation via function
attributes.

Unfortunately, for SanitizeCoverage, it has not been implemented as a
sanitizer via fsanitize= and associated options in Sanitizers.def, but
rolls its own option fsanitize-coverage. This meant that we never got
"automatic" no_sanitize attribute support.

Implement no_sanitize attribute support by special-casing the string
"coverage" in the NoSanitizeAttr implementation. To keep the feature as
unintrusive to existing IR generation as possible, define a new negative
function attribute NoSanitizeCoverage to propagate the information
through to the instrumentation pass.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=49035

Reviewed By: vitalybuka, morehouse

Differential Revision: https://reviews.llvm.org/D102772
2021-05-25 12:57:14 +02:00
..
analysis.go Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
bitreader.go Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
bitwriter.go Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
dibuilder.go Add an SDK attribute to DICompileUnit 2020-03-11 14:14:06 -07:00
executionengine_test.go [ConstProp] Remove ConstantPropagation 2020-08-26 15:51:30 -07:00
executionengine.go Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
InstrumentationBindings.cpp [DFSan][NewPM] Port DataFlowSanitizer to NewPM 2020-07-29 10:19:15 -07:00
InstrumentationBindings.h Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
ir_test.go [SanitizeCoverage] Add support for NoSanitizeCoverage function attribute 2021-05-25 12:57:14 +02:00
ir.go Support unwinding from inline assembly 2021-05-13 19:13:03 +01:00
IRBindings.cpp [Go] Fix bindings/go/llvm/IRBindings.cpp 2020-12-16 10:09:58 -08:00
IRBindings.h Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
linker.go Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
llvm_config.go.in Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
llvm_dep.go Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
string_test.go Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
string.go Fix go bindings after FixedVectorType -> VectorType change. 2020-05-15 16:37:57 -07:00
support.go Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
SupportBindings.cpp Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
SupportBindings.h Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
target.go Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
transforms_coroutines.go Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
transforms_instrumentation.go Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
transforms_ipo.go Recommit "[IPConstProp] Remove and move tests to SCCP." 2020-08-02 22:23:54 +01:00
transforms_pmbuilder.go [LLVM-C] Add bindings for addCoroutinePassesToExtensionPoints 2020-02-24 20:15:51 +01:00
transforms_scalar.go [ConstProp] Remove ConstantPropagation 2020-08-26 15:51:30 -07:00
version.go Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00