Files
gps/tools/local/circt/include/llvm/Transforms/Instrumentation/RealtimeSanitizer.h
T
2026-07-12 11:01:51 +03:00

36 lines
1.3 KiB
C++

//===- RealtimeSanitizer.h - RealtimeSanitizer instrumentation --*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file is a part of the RealtimeSanitizer, an LLVM transformation for
// detecting and reporting realtime safety violations.
//
// The instrumentation pass inserts calls to __rtsan_realtime_enter and
// __rtsan_realtime_exit at the entry and exit points of functions that are
// marked with the appropriate attribute.
//
// See also: llvm-project/compiler-rt/lib/rtsan/
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_REALTIMESANITIZER_H
#define LLVM_TRANSFORMS_INSTRUMENTATION_REALTIMESANITIZER_H
#include "llvm/IR/PassManager.h"
#include "llvm/Support/Compiler.h"
namespace llvm {
/// Create ctor and init functions.
struct RealtimeSanitizerPass
: public RequiredPassInfoMixin<RealtimeSanitizerPass> {
LLVM_ABI PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
};
} // namespace llvm
#endif // LLVM_TRANSFORMS_INSTRUMENTATION_REALTIMESANITIZER_H