16void MachineModuleSlotTracker::processMachineFunctionMetadata(
34void MachineModuleSlotTracker::processMachineModule(
36 bool ShouldInitializeAllMetadata) {
37 if (ShouldInitializeAllMetadata) {
39 if (&F != &TheFunction)
43 processMachineFunctionMetadata(AST, *MF);
50void MachineModuleSlotTracker::processMachineFunction(
52 bool ShouldInitializeAllMetadata) {
53 if (!ShouldInitializeAllMetadata && F == &TheFunction) {
56 processMachineFunctionMetadata(AST, *MF);
68 bool ShouldInitializeAllMetadata)
70 ShouldInitializeAllMetadata),
73 bool ShouldInitializeAllMetadata) {
74 this->processMachineModule(AST, M, ShouldInitializeAllMetadata);
77 bool ShouldInitializeAllMetadata) {
78 this->processMachineFunction(AST,
F, ShouldInitializeAllMetadata);
static const Function * getParent(const Value *V)
static Function * getFunction(Constant *C)
Module.h This file contains the declarations for the Module class.
Abstract interface of slot tracker storage.
virtual unsigned getNextMetadataSlot()=0
virtual void createMetadataSlot(const MDNode *)=0
Representation of each machine instruction.
A description of a memory reference used in the backend.
This class contains meta information specific to a module.
MachineFunction * getMachineFunction(const Function &F) const
Returns the MachineFunction associated to IR function F if there is one, otherwise nullptr.
~MachineModuleSlotTracker()
void collectMachineMDNodes(MachineMDNodeListType &L) const
MachineModuleSlotTracker(const MachineModuleInfo &MMI, const MachineFunction *MF, bool ShouldInitializeAllMetadata=true)
Manage lifetime of a slot tracker for printing IR.
std::vector< std::pair< unsigned, const MDNode * > > MachineMDNodeListType
void collectMDNodes(MachineMDNodeListType &L, unsigned LB, unsigned UB) const
void setProcessHook(std::function< void(AbstractSlotTrackerStorage *, const Module *, bool)>)
A Module instance is used to store all the information related to an LLVM module.
This is an optimization pass for GlobalISel generic memory operations.
A collection of metadata nodes that might be associated with a memory access used by the alias-analys...
MDNode * TBAAStruct
The tag for type-based alias analysis (tbaa struct).
MDNode * Scope
The tag for alias scope specification (used with noalias).
MDNode * TBAA
The tag for type-based alias analysis.
MDNode * NoAlias
The tag specifying the noalias scope.