LLVM 23.0.0git
KCFI.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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/// \file
10/// This file contains the declaration of the MachineKCFI class, which is a
11/// Machine Pass that implements kernel control flow integrity.
12///
13//===----------------------------------------------------------------------===//
14
15#ifndef LLVM_CODEGEN_KCFI_H
16#define LLVM_CODEGEN_KCFI_H
17
19
20namespace llvm {
21
22class MachineKCFIPass : public PassInfoMixin<MachineKCFIPass> {
23public:
26 static bool isRequired() { return true; }
27};
28
29} // namespace llvm
30
31#endif // LLVM_CODEGEN_KCFI_H
static bool isRequired()
Definition KCFI.h:26
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
Definition KCFI.cpp:71
A set of analyses that are preserved following a run of a transformation pass.
Definition Analysis.h:112
This is an optimization pass for GlobalISel generic memory operations.
AnalysisManager< MachineFunction > MachineFunctionAnalysisManager
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition PassManager.h:70