LLVM 22.0.0git
llvm::NVPTXMachineFunctionInfo Class Reference

#include "Target/NVPTX/NVPTXMachineFunctionInfo.h"

Inheritance diagram for llvm::NVPTXMachineFunctionInfo:
[legend]

Public Member Functions

 NVPTXMachineFunctionInfo (const Function &F, const TargetSubtargetInfo *STI)
MachineFunctionInfoclone (BumpPtrAllocator &Allocator, MachineFunction &DestMF, const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &Src2DstMBB) const override
 Make a functionally equivalent copy of this MachineFunctionInfo in MF.
unsigned getImageHandleSymbolIndex (StringRef Symbol)
 Returns the index for the symbol Symbol.
bool checkImageHandleSymbol (StringRef Symbol) const
 Check if the symbol has a mapping.
Public Member Functions inherited from llvm::MachineFunctionInfo
virtual ~MachineFunctionInfo ()

Additional Inherited Members

Static Public Member Functions inherited from llvm::MachineFunctionInfo
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

Definition at line 21 of file NVPTXMachineFunctionInfo.h.

Constructor & Destructor Documentation

◆ NVPTXMachineFunctionInfo()

llvm::NVPTXMachineFunctionInfo::NVPTXMachineFunctionInfo ( const Function & F,
const TargetSubtargetInfo * STI )
inline

Definition at line 28 of file NVPTXMachineFunctionInfo.h.

References F.

Referenced by clone().

Member Function Documentation

◆ checkImageHandleSymbol()

bool llvm::NVPTXMachineFunctionInfo::checkImageHandleSymbol ( StringRef Symbol) const
inline

Check if the symbol has a mapping.

Having a mapping means the handle is replaced with a reference

Definition at line 52 of file NVPTXMachineFunctionInfo.h.

References llvm::is_contained().

◆ clone()

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

Make a functionally equivalent copy of this MachineFunctionInfo in MF.

This requires remapping MachineBasicBlock references from the original parent to values in the new function. Targets may assume that virtual register and frame index values are preserved in the new function.

Reimplemented from llvm::MachineFunctionInfo.

Definition at line 31 of file NVPTXMachineFunctionInfo.h.

References Allocator, llvm::MachineFunction::cloneInfo(), and NVPTXMachineFunctionInfo().

◆ getImageHandleSymbolIndex()

unsigned llvm::NVPTXMachineFunctionInfo::getImageHandleSymbolIndex ( StringRef Symbol)
inline

Returns the index for the symbol Symbol.

If the symbol was previously, added, the same index is returned. Otherwise, the symbol is added and the new index is returned.

Definition at line 40 of file NVPTXMachineFunctionInfo.h.


The documentation for this class was generated from the following file: