LLVM 19.0.0git
Public Member Functions | List of all members
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 347 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 350 of file MachineInstrBuilder.h.

References DL.

◆ MIMetadata() [3/5]

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

Definition at line 352 of file MachineInstrBuilder.h.

◆ MIMetadata() [4/5]

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

Definition at line 355 of file MachineInstrBuilder.h.

◆ MIMetadata() [5/5]

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

Definition at line 358 of file MachineInstrBuilder.h.

Member Function Documentation

◆ getDL()

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

◆ getMMRAMetadata()

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

Definition at line 363 of file MachineInstrBuilder.h.

Referenced by llvm::BuildMI().

◆ getPCSections()

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

Definition at line 362 of file MachineInstrBuilder.h.

Referenced by llvm::BuildMI().


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