LLVM 22.0.0git
MachineModuleSlotTracker.h
Go to the documentation of this file.
1//===-- llvm/CodeGen/MachineModuleInfo.h ------------------------*- 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_CODEGEN_MACHINEMODULESLOTTRACKER_H
10#define LLVM_CODEGEN_MACHINEMODULESLOTTRACKER_H
11
15
16namespace llvm {
17
19class Function;
21class MachineFunction;
22class Module;
23
25
27 const Function &TheFunction;
28 const MachineFunction *TheMF;
29 unsigned MDNStartSlot = 0, MDNEndSlot = 0;
30
31 void processMachineFunctionMetadata(AbstractSlotTrackerStorage *AST,
32 const MachineFunction &MF);
33 void processMachineModule(AbstractSlotTrackerStorage *AST, const Module *M,
34 bool ShouldInitializeAllMetadata);
35 void processMachineFunction(AbstractSlotTrackerStorage *AST,
36 const Function *F,
37 bool ShouldInitializeAllMetadata);
38
39public:
41 bool ShouldInitializeAllMetadata = true);
43
45};
46
47} // namespace llvm
48
49#endif // LLVM_CODEGEN_MACHINEMODULESLOTTRACKER_H
#define LLVM_ABI
Definition Compiler.h:213
Abstract interface of slot tracker storage.
This class contains meta information specific to a module.
void collectMachineMDNodes(MachineMDNodeListType &L) const
MachineModuleSlotTracker(MFGetterFnT Fn, const MachineFunction *MF, bool ShouldInitializeAllMetadata=true)
ModuleSlotTracker(SlotTracker &Machine, const Module *M, const Function *F=nullptr)
Wrap a preinitialized SlotTracker.
std::vector< std::pair< unsigned, const MDNode * > > MachineMDNodeListType
A Module instance is used to store all the information related to an LLVM module.
Definition Module.h:67
An efficient, type-erasing, non-owning reference to a callable.
This is an optimization pass for GlobalISel generic memory operations.
function_ref< MachineFunction *(const Function &)> MFGetterFnT