LLVM 20.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
13
14namespace llvm {
15
16class AbstractSlotTrackerStorage;
17class Function;
18class MachineModuleInfo;
19class MachineFunction;
20class Module;
21
23 const Function &TheFunction;
24 const MachineModuleInfo &TheMMI;
25 unsigned MDNStartSlot = 0, MDNEndSlot = 0;
26
27 void processMachineFunctionMetadata(AbstractSlotTrackerStorage *AST,
28 const MachineFunction &MF);
29 void processMachineModule(AbstractSlotTrackerStorage *AST, const Module *M,
30 bool ShouldInitializeAllMetadata);
31 void processMachineFunction(AbstractSlotTrackerStorage *AST,
32 const Function *F,
33 bool ShouldInitializeAllMetadata);
34
35public:
37 const MachineFunction *MF,
38 bool ShouldInitializeAllMetadata = true);
40
42};
43
44} // namespace llvm
45
46#endif // LLVM_CODEGEN_MACHINEMODULESLOTTRACKER_H
#define F(x, y, z)
Definition: MD5.cpp:55
Machine Check Debug Module
Abstract interface of slot tracker storage.
This class contains meta information specific to a module.
void collectMachineMDNodes(MachineMDNodeListType &L) const
Manage lifetime of a slot tracker for printing IR.
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:65
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18