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

#include "Target/DirectX/DirectXIRPasses/DXILDebugInfo.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 27 of file DXILDebugInfo.h.

Member Typedef Documentation

◆ FuncMap

Definition at line 33 of file DXILDebugInfo.h.

◆ InstMap

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

Definition at line 34 of file DXILDebugInfo.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 54 of file DXILDebugInfo.h.

References F, and FuncReplace.

◆ getDXILInstruction()

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

Definition at line 61 of file DXILDebugInfo.h.

References I, and InstReplace.

◆ getDXILMetadata()

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

Definition at line 68 of file DXILDebugInfo.h.

References MDReplace.

Member Data Documentation

◆ FuncReplace

FuncMap llvm::dxil::DXILDebugInfoMap::FuncReplace

Completely replace one function with another in ValueEnumerator.

Definition at line 43 of file DXILDebugInfo.h.

Referenced by getDXILFunction(), and replaceDbgValue().

◆ InstReplace

InstMap llvm::dxil::DXILDebugInfoMap::InstReplace

Completely replace one instruction with another in ValueEnumerator.

Definition at line 46 of file DXILDebugInfo.h.

Referenced by getDXILInstruction(), and replaceDbgVariableIntr().

◆ MDExtra

MDMap llvm::dxil::DXILDebugInfoMap::MDExtra

Enumerate extra metadata when Key is encountered in ValueEnumerator.

Definition at line 49 of file DXILDebugInfo.h.

Referenced by llvm::dxil::DXILDebugInfoPass::run().

◆ MDReplace

MDMap llvm::dxil::DXILDebugInfoMap::MDReplace

Completely replace one metadata with another in ValueEnumerator.

Definition at line 52 of file DXILDebugInfo.h.

Referenced by getDXILMetadata(), and llvm::dxil::DXILDebugInfoPass::run().


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