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
14
15namespace llvm {
16
18class Function;
20class MachineFunction;
21class Module;
22
24 const Function &TheFunction;
25 const MachineModuleInfo &TheMMI;
26 unsigned MDNStartSlot = 0, MDNEndSlot = 0;
27
28 void processMachineFunctionMetadata(AbstractSlotTrackerStorage *AST,
29 const MachineFunction &MF);
30 void processMachineModule(AbstractSlotTrackerStorage *AST, const Module *M,
31 bool ShouldInitializeAllMetadata);
32 void processMachineFunction(AbstractSlotTrackerStorage *AST,
33 const Function *F,
34 bool ShouldInitializeAllMetadata);
35
36public:
38 const MachineFunction *MF,
39 bool ShouldInitializeAllMetadata = true);
41
43};
44
45} // namespace llvm
46
47#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(const MachineModuleInfo &MMI, 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
This is an optimization pass for GlobalISel generic memory operations.