LLVM  16.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::MachineFunctionInfo Struct Reference

MachineFunctionInfo - This class can be derived from and used by targets to hold private target-specific information for each MachineFunction. More...

#include "llvm/CodeGen/MachineFunction.h"

Inheritance diagram for llvm::MachineFunctionInfo:
Inheritance graph
[legend]

Public Member Functions

virtual ~MachineFunctionInfo ()
 
virtual MachineFunctionInfoclone (BumpPtrAllocator &Allocator, MachineFunction &DestMF, const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &Src2DstMBB) const
 Make a functionally equivalent copy of this MachineFunctionInfo in MF. More...
 

Static Public Member Functions

template<typename Ty >
static Ty * create (BumpPtrAllocator &Allocator, MachineFunction &MF)
 Factory function: default behavior is to call new using the supplied allocator. More...
 
template<typename Ty >
static Ty * create (BumpPtrAllocator &Allocator, const Ty &MFI)
 

Detailed Description

MachineFunctionInfo - This class can be derived from and used by targets to hold private target-specific information for each MachineFunction.

Objects of type are accessed/created with MF::getInfo and destroyed when the MachineFunction is destroyed.

Definition at line 95 of file MachineFunction.h.

Constructor & Destructor Documentation

◆ ~MachineFunctionInfo()

MachineFunctionInfo::~MachineFunctionInfo ( )
virtualdefault

Member Function Documentation

◆ clone()

virtual MachineFunctionInfo* llvm::MachineFunctionInfo::clone ( BumpPtrAllocator Allocator,
MachineFunction DestMF,
const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &  Src2DstMBB 
) const
inlinevirtual

◆ create() [1/2]

template<typename Ty >
static Ty* llvm::MachineFunctionInfo::create ( BumpPtrAllocator Allocator,
const Ty &  MFI 
)
inlinestatic

Definition at line 108 of file MachineFunction.h.

References Allocator.

◆ create() [2/2]

template<typename Ty >
static Ty* llvm::MachineFunctionInfo::create ( BumpPtrAllocator Allocator,
MachineFunction MF 
)
inlinestatic

Factory function: default behavior is to call new using the supplied allocator.

This function can be overridden in a derive class.

Definition at line 103 of file MachineFunction.h.

References Allocator.


The documentation for this struct was generated from the following files: