
Introducing the main runtime of realtime sanitizer. For more information, please see the [discourse thread](https://discourse.llvm.org/t/rfc-nolock-and-noalloc-attributes/76837). We have also put together a [reviewer support document](https://github.com/realtime-sanitizer/radsan/blob/doc/review-support/doc/review.md) to show what our intention is. This review introduces the sanitizer backend. This includes: * CMake build files (largely adapted from asan). * Main RTSan architecture (the external API, thread local context, stack). * Interceptors. * Many unit tests. Please see the [reviewer support document](https://github.com/realtime-sanitizer/radsan/blob/doc/review-support/doc/review.md) for what our next steps are. We are moving in lockstep with this PR #84983 for the codegen coming up next. Note to reviewers: If you see support documentation mention "RADSan", this was the "old acronym" for the realtime sanitizer, they refer to the same thing. If you see it let us know and we can correct it (especially in the llvm codebase) --------- Co-authored-by: David Trevelyan <david.trevelyan@gmail.com>
18 lines
683 B
Python
18 lines
683 B
Python
@LIT_SITE_CFG_IN_HEADER@
|
|
|
|
# Tool-specific config options.
|
|
config.name_suffix = "@RTSAN_TEST_CONFIG_SUFFIX@"
|
|
config.rtsan_lit_source_dir = "@RTSAN_LIT_SOURCE_DIR@"
|
|
config.target_cflags = "@RTSAN_TEST_TARGET_CFLAGS@"
|
|
config.target_arch = "@RTSAN_TEST_TARGET_ARCH@"
|
|
config.built_with_llvm = ("@COMPILER_RT_STANDALONE_BUILD@" != "TRUE")
|
|
|
|
if config.built_with_llvm:
|
|
config.available_features.add('built-in-llvm-tree')
|
|
|
|
# Load common config for all compiler-rt lit tests
|
|
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
|
|
|
|
# Load tool-specific config that would do the real work.
|
|
lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg.py")
|