LLVM 24.0.0git
llvm::dxil::DXILDebugInfoMap Class Reference

#include "Target/DirectX/DXILWriter/DXILDebugInfoMap.h"

Public Types

using FuncMap = DenseMap<const Function *, std::unique_ptr<Function>>
using InstMap
using MDMap = DenseMap<const Metadata *, const Metadata *>

Public Member Functions

 DXILDebugInfoMap ()=default
 DXILDebugInfoMap (const DXILDebugInfoMap &)=delete
 DXILDebugInfoMap (DXILDebugInfoMap &&)=default
const FunctiongetDXILFunction (const Function &F) const
const InstructiongetDXILInstruction (const Instruction &I) const
const MetadatagetDXILMetadata (const Metadata *M) const

Public Attributes

FuncMap FuncReplace
 Completely replace one function with another in ValueEnumerator.
InstMap InstReplace
 Completely replace one instruction with another in ValueEnumerator.
MDMap MDExtra
 Enumerate extra metadata when Key is encountered in ValueEnumerator.
MDMap MDReplace
 Completely replace one metadata with another in ValueEnumerator.

Detailed Description

Definition at line 20 of file DXILDebugInfoMap.h.

Member Typedef Documentation

◆ FuncMap

Definition at line 26 of file DXILDebugInfoMap.h.

◆ InstMap

Initial value:
std::unique_ptr<Instruction, InstructionDeleter>>

Definition at line 27 of file DXILDebugInfoMap.h.

◆ MDMap

Constructor & Destructor Documentation

◆ DXILDebugInfoMap() [1/3]

llvm::dxil::DXILDebugInfoMap::DXILDebugInfoMap ( )
default

◆ DXILDebugInfoMap() [2/3]

llvm::dxil::DXILDebugInfoMap::DXILDebugInfoMap ( const DXILDebugInfoMap & )
delete

References DXILDebugInfoMap().

◆ DXILDebugInfoMap() [3/3]

llvm::dxil::DXILDebugInfoMap::DXILDebugInfoMap ( DXILDebugInfoMap && )
default

References DXILDebugInfoMap().

Member Function Documentation

◆ getDXILFunction()

const Function & llvm::dxil::DXILDebugInfoMap::getDXILFunction ( const Function & F) const
inline

Definition at line 47 of file DXILDebugInfoMap.h.

References F, and FuncReplace.

◆ getDXILInstruction()

const Instruction & llvm::dxil::DXILDebugInfoMap::getDXILInstruction ( const Instruction & I) const
inline

Definition at line 54 of file DXILDebugInfoMap.h.

References I, and InstReplace.

◆ getDXILMetadata()

const Metadata * llvm::dxil::DXILDebugInfoMap::getDXILMetadata ( const Metadata * M) const
inline

Definition at line 61 of file DXILDebugInfoMap.h.

References MDReplace.

Member Data Documentation

◆ FuncReplace

FuncMap llvm::dxil::DXILDebugInfoMap::FuncReplace

Completely replace one function with another in ValueEnumerator.

Definition at line 36 of file DXILDebugInfoMap.h.

Referenced by getDXILFunction(), and replaceDbgValue().

◆ InstReplace

InstMap llvm::dxil::DXILDebugInfoMap::InstReplace

Completely replace one instruction with another in ValueEnumerator.

Definition at line 39 of file DXILDebugInfoMap.h.

Referenced by getDXILInstruction(), and replaceDbgVariableIntr().

◆ MDExtra

MDMap llvm::dxil::DXILDebugInfoMap::MDExtra

Enumerate extra metadata when Key is encountered in ValueEnumerator.

Definition at line 42 of file DXILDebugInfoMap.h.

Referenced by collectAdditionalMetadata(), and llvm::dxil::collectDXILDebugInfo().

◆ MDReplace

MDMap llvm::dxil::DXILDebugInfoMap::MDReplace

Completely replace one metadata with another in ValueEnumerator.

Definition at line 45 of file DXILDebugInfoMap.h.

Referenced by collectAdditionalMetadata(), llvm::dxil::collectDXILDebugInfo(), and getDXILMetadata().


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