LLVM 17.0.0git
BPF.h
Go to the documentation of this file.
1//===-- BPF.h - Top-level interface for BPF representation ------*- 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#ifndef LLVM_LIB_TARGET_BPF_BPF_H
10#define LLVM_LIB_TARGET_BPF_BPF_H
11
13#include "llvm/IR/PassManager.h"
14#include "llvm/Pass.h"
16
17namespace llvm {
18class BPFTargetMachine;
19class PassRegistry;
20
23
33
45
47 : public PassInfoMixin<BPFAbstractMemberAccessPass> {
49
50public:
53
54 static bool isRequired() { return true; }
55};
56
57class BPFPreserveDITypePass : public PassInfoMixin<BPFPreserveDITypePass> {
58public:
60
61 static bool isRequired() { return true; }
62};
63
64class BPFIRPeepholePass : public PassInfoMixin<BPFIRPeepholePass> {
65public:
67
68 static bool isRequired() { return true; }
69};
70
71class BPFAdjustOptPass : public PassInfoMixin<BPFAdjustOptPass> {
72public:
74};
75} // namespace llvm
76
77#endif
#define F(x, y, z)
Definition: MD5.cpp:55
const char LLVMTargetMachineRef TM
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:620
static bool isRequired()
Definition: BPF.h:54
BPFAbstractMemberAccessPass(BPFTargetMachine *TM)
Definition: BPF.h:51
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
static bool isRequired()
Definition: BPF.h:68
static bool isRequired()
Definition: BPF.h:61
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
FunctionPass class - This class is used to implement most global optimizations.
Definition: Pass.h:311
ModulePass class - This class is used to implement unstructured interprocedural optimizations and ana...
Definition: Pass.h:251
A Module instance is used to store all the information related to an LLVM module.
Definition: Module.h:65
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
Definition: PassRegistry.h:37
A set of analyses that are preserved following a run of a transformation pass.
Definition: PassManager.h:152
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
void initializeBPFIRPeepholePass(PassRegistry &)
void initializeBPFMIPreEmitPeepholePass(PassRegistry &)
void initializeBPFAdjustOptPass(PassRegistry &)
void initializeBPFMISimplifyPatchablePass(PassRegistry &)
FunctionPass * createBPFMISimplifyPatchablePass()
FunctionPass * createBPFMIPreEmitCheckingPass()
FunctionPass * createBPFMIPeepholeTruncElimPass()
ModulePass * createBPFCheckAndAdjustIR()
FunctionPass * createBPFMIPreEmitPeepholePass()
void initializeBPFMIPeepholePass(PassRegistry &)
void initializeBPFAbstractMemberAccessLegacyPassPass(PassRegistry &)
FunctionPass * createBPFMIPeepholePass()
FunctionPass * createBPFAbstractMemberAccess(BPFTargetMachine *TM)
void initializeBPFMIPeepholeTruncElimPass(PassRegistry &)
FunctionPass * createBPFPreserveDIType()
void initializeBPFCheckAndAdjustIRPass(PassRegistry &)
FunctionPass * createBPFIRPeephole()
void initializeBPFMIPreEmitCheckingPass(PassRegistry &)
FunctionPass * createBPFISelDag(BPFTargetMachine &TM)
void initializeBPFPreserveDITypePass(PassRegistry &)
ModulePass * createBPFAdjustOpt()
void initializeBPFDAGToDAGISelPass(PassRegistry &)
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:371