Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:39

0001 //===- RealtimeSanitizer.h - RealtimeSanitizer instrumentation --*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 //
0009 // This file is a part of the RealtimeSanitizer, an LLVM transformation for
0010 // detecting and reporting realtime safety violations.
0011 //
0012 // The instrumentation pass inserts calls to __rtsan_realtime_enter and
0013 // __rtsan_realtime_exit at the entry and exit points of functions that are
0014 // marked with the appropriate attribute.
0015 //
0016 // See also: llvm-project/compiler-rt/lib/rtsan/
0017 //
0018 //===----------------------------------------------------------------------===//
0019 #ifndef LLVM_TRANSFORMS_INSTRUMENTATION_REALTIMESANITIZER_H
0020 #define LLVM_TRANSFORMS_INSTRUMENTATION_REALTIMESANITIZER_H
0021 
0022 #include "llvm/IR/PassManager.h"
0023 
0024 namespace llvm {
0025 
0026 /// Create ctor and init functions.
0027 struct RealtimeSanitizerPass : public PassInfoMixin<RealtimeSanitizerPass> {
0028   PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
0029   static bool isRequired() { return true; }
0030 };
0031 
0032 } // namespace llvm
0033 
0034 #endif // LLVM_TRANSFORMS_INSTRUMENTATION_REALTIMESANITIZER_H