LLVM 22.0.0git
llvm::MIMetadata Class Reference

Set of metadata that should be preserved when using BuildMI(). More...

#include "llvm/CodeGen/MachineInstrBuilder.h"

Public Member Functions

 MIMetadata ()=default
 MIMetadata (DebugLoc DL, MDNode *PCSections=nullptr, MDNode *MMRA=nullptr)
 MIMetadata (const DILocation *DI, MDNode *PCSections=nullptr, MDNode *MMRA=nullptr)
 MIMetadata (const Instruction &From)
 MIMetadata (const MachineInstr &From)
const DebugLocgetDL () const
MDNodegetPCSections () const
MDNodegetMMRAMetadata () const

Detailed Description

Set of metadata that should be preserved when using BuildMI().

This provides a more convenient way of preserving DebugLoc, PCSections and MMRA.

Definition at line 74 of file MachineInstrBuilder.h.

Constructor & Destructor Documentation

◆ MIMetadata() [1/5]

llvm::MIMetadata::MIMetadata ( )
default

◆ MIMetadata() [2/5]

llvm::MIMetadata::MIMetadata ( DebugLoc DL,
MDNode * PCSections = nullptr,
MDNode * MMRA = nullptr )
inline

Definition at line 77 of file MachineInstrBuilder.h.

References llvm::move().

◆ MIMetadata() [3/5]

llvm::MIMetadata::MIMetadata ( const DILocation * DI,
MDNode * PCSections = nullptr,
MDNode * MMRA = nullptr )
inline

Definition at line 79 of file MachineInstrBuilder.h.

◆ MIMetadata() [4/5]

llvm::MIMetadata::MIMetadata ( const Instruction & From)
inlineexplicit

Definition at line 82 of file MachineInstrBuilder.h.

References getDebugLoc().

◆ MIMetadata() [5/5]

llvm::MIMetadata::MIMetadata ( const MachineInstr & From)
inlineexplicit

Definition at line 85 of file MachineInstrBuilder.h.

References getDebugLoc(), and getPCSections().

Member Function Documentation

◆ getDL()

const DebugLoc & llvm::MIMetadata::getDL ( ) const
inline

◆ getMMRAMetadata()

MDNode * llvm::MIMetadata::getMMRAMetadata ( ) const
inline

Definition at line 90 of file MachineInstrBuilder.h.

Referenced by llvm::MachineInstrBuilder::copyMIMetadata().

◆ getPCSections()

MDNode * llvm::MIMetadata::getPCSections ( ) const
inline

Definition at line 89 of file MachineInstrBuilder.h.

Referenced by llvm::MachineInstrBuilder::copyMIMetadata(), and MIMetadata().


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