LLVM 20.0.0git
RealtimeSanitizer.h
Go to the documentation of this file.
1//===- RealtimeSanitizer.h - RealtimeSanitizer instrumentation --*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file is a part of the RealtimeSanitizer, an LLVM transformation for
10// detecting and reporting realtime safety violations.
11//
12// The instrumentation pass inserts calls to __rtsan_realtime_enter and
13// __rtsan_realtime_exit at the entry and exit points of functions that are
14// marked with the appropriate attribute.
15//
16// See also: llvm-project/compiler-rt/lib/rtsan/
17//
18//===----------------------------------------------------------------------===//
19#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_REALTIMESANITIZER_H
20#define LLVM_TRANSFORMS_INSTRUMENTATION_REALTIMESANITIZER_H
21
22#include "llvm/IR/PassManager.h"
23
24namespace llvm {
25
26/// Create ctor and init functions.
27struct RealtimeSanitizerPass : public PassInfoMixin<RealtimeSanitizerPass> {
29 static bool isRequired() { return true; }
30};
31
32} // namespace llvm
33
34#endif // LLVM_TRANSFORMS_INSTRUMENTATION_REALTIMESANITIZER_H
This header defines various interfaces for pass management in LLVM.
A container for analyses that lazily runs them and caches their results.
Definition: PassManager.h:253
A Module instance is used to store all the information related to an LLVM module.
Definition: Module.h:65
A set of analyses that are preserved following a run of a transformation pass.
Definition: Analysis.h:111
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:69
Create ctor and init functions.
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)