LLVM 20.0.0git
Functions | Variables
DXILPrettyPrinter.cpp File Reference
#include "DXILPrettyPrinter.h"
#include "DXILResourceAnalysis.h"
#include "DirectX.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Analysis/DXILResource.h"
#include "llvm/IR/PassManager.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Support/FormatAdapters.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/raw_ostream.h"

Go to the source code of this file.

Functions

static StringRef getRCName (dxil::ResourceClass RC)
 
static StringRef getRCPrefix (dxil::ResourceClass RC)
 
static StringRef getFormatName (const dxil::ResourceTypeInfo &RI)
 
static StringRef getTextureDimName (dxil::ResourceKind RK)
 
static void prettyPrintResources (raw_ostream &OS, const DXILBindingMap &DBM, DXILResourceTypeMap &DRTM, const dxil::Resources &MDResources)
 
 INITIALIZE_PASS_BEGIN (DXILPrettyPrinterLegacy, "dxil-pretty-printer", "DXIL Metadata Pretty Printer", true, true) INITIALIZE_PASS_END(DXILPrettyPrinterLegacy
 

Variables

dxil pretty printer
 
dxil pretty DXIL Metadata Pretty Printer
 
dxil pretty DXIL Metadata Pretty true
 

Function Documentation

◆ getFormatName()

static StringRef getFormatName ( const dxil::ResourceTypeInfo RI)
static

◆ getRCName()

static StringRef getRCName ( dxil::ResourceClass  RC)
static

Definition at line 23 of file DXILPrettyPrinter.cpp.

References llvm_unreachable.

Referenced by prettyPrintResources().

◆ getRCPrefix()

static StringRef getRCPrefix ( dxil::ResourceClass  RC)
static

Definition at line 37 of file DXILPrettyPrinter.cpp.

References llvm_unreachable.

◆ getTextureDimName()

static StringRef getTextureDimName ( dxil::ResourceKind  RK)
static

Definition at line 101 of file DXILPrettyPrinter.cpp.

References llvm_unreachable.

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( DXILPrettyPrinterLegacy  ,
"dxil-pretty-printer"  ,
"DXIL Metadata Pretty Printer"  ,
true  ,
true   
)

◆ prettyPrintResources()

static void prettyPrintResources ( raw_ostream OS,
const DXILBindingMap DBM,
DXILResourceTypeMap DRTM,
const dxil::Resources MDResources 
)
static

Variable Documentation

◆ printer

dxil pretty printer

Definition at line 304 of file DXILPrettyPrinter.cpp.

Referenced by llvm::cl::printOptionDiff(), and printRegImmShift().

◆ Printer

dxil pretty DXIL Metadata Pretty Printer

◆ true

dxil pretty DXIL Metadata Pretty true

Definition at line 305 of file DXILPrettyPrinter.cpp.