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
27
28class RealtimeSanitizerPass : public PassInfoMixin<RealtimeSanitizerPass> {
29public:
32
33 static bool isRequired() { return true; }
34};
35
36} // namespace llvm
37
38#endif // LLVM_TRANSFORMS_INSTRUMENTATION_REALTIMESANITIZER_H
static LVOptions Options
Definition: LVOptions.cpp:25
#define F(x, y, z)
Definition: MD5.cpp:55
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 set of analyses that are preserved following a run of a transformation pass.
Definition: Analysis.h:111
PreservedAnalyses run(Function &F, AnalysisManager< Function > &AM)
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