LLVM 22.0.0git
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:
[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 104 of file MachineFunction.h.

Constructor & Destructor Documentation

◆ ~MachineFunctionInfo()

MachineFunctionInfo::~MachineFunctionInfo ( )
virtualdefault

Member Function Documentation

◆ clone()

◆ create() [1/2]

template<typename FuncInfoTy, typename SubtargetTy = TargetSubtargetInfo>
FuncInfoTy * llvm::MachineFunctionInfo::create ( BumpPtrAllocator & Allocator,
const Function & F,
const SubtargetTy * STI )
inlinestatic

◆ create() [2/2]

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

Definition at line 118 of file MachineFunction.h.

References Allocator.


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