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)
 
 MIMetadata (const DILocation *DI, MDNode *PCSections=nullptr)
 
 MIMetadata (const Instruction &From)
 
 MIMetadata (const MachineInstr &From)
 
const DebugLocgetDL () const
 
MDNodegetPCSections () const
 

Detailed Description

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

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

Definition at line 341 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 
)
inline

Definition at line 344 of file MachineInstrBuilder.h.

References DL.

◆ MIMetadata() [3/5]

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

Definition at line 346 of file MachineInstrBuilder.h.

◆ MIMetadata() [4/5]

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

Definition at line 348 of file MachineInstrBuilder.h.

◆ MIMetadata() [5/5]

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

Definition at line 351 of file MachineInstrBuilder.h.

Member Function Documentation

◆ getDL()

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

◆ getPCSections()

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

Definition at line 355 of file MachineInstrBuilder.h.

Referenced by llvm::BuildMI().


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