LLVM 19.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.
 

Static Public Member Functions

template<typename FuncInfoTy , typename SubtargetTy = TargetSubtargetInfo>
static FuncInfoTy * create (BumpPtrAllocator &Allocator, const Function &F, const SubtargetTy *STI)
 Factory function: default behavior is to call new using the supplied allocator.
 
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 96 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 FuncInfoTy , typename SubtargetTy = TargetSubtargetInfo>
static FuncInfoTy * llvm::MachineFunctionInfo::create ( BumpPtrAllocator Allocator,
const Function F,
const SubtargetTy *  STI 
)
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 104 of file MachineFunction.h.

References Allocator, and F.

◆ create() [2/2]

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

Definition at line 110 of file MachineFunction.h.

References Allocator.


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