LLVM  16.0.0git
Namespaces | Classes | Typedefs | Enumerations | Functions
llvm::dxil Namespace Reference

Namespaces

 PointerTypeAnalysis
 An analysis to compute the PointerTypes for pointers in a Module.
 

Classes

class  BitcodeWriter
 
struct  ComputedShaderFlags
 
class  DXILBitcodeWriter
 
class  DXILOpBuilder
 
class  ResourceBase
 
class  Resources
 
class  ShaderFlagsAnalysis
 
class  ShaderFlagsAnalysisPrinter
 Printer pass for ShaderFlagsAnalysis results. More...
 
class  ShaderFlagsAnalysisWrapper
 Wrapper pass for the legacy pass manager. More...
 
class  UAVResource
 
class  ValidatorVersionMD
 
class  ValueEnumerator
 

Typedefs

using PointerTypeMap = DenseMap< const Value *, Type * >
 

Enumerations

enum  ParameterKind : uint8_t {
  ParameterKind::INVALID = 0, ParameterKind::VOID, ParameterKind::HALF, ParameterKind::FLOAT,
  ParameterKind::DOUBLE, ParameterKind::I1, ParameterKind::I8, ParameterKind::I16,
  ParameterKind::I32, ParameterKind::I64, ParameterKind::OVERLOAD, ParameterKind::CBUFFER_RET,
  ParameterKind::RESOURCE_RET, ParameterKind::DXIL_HANDLE
}
 
enum  MetadataAbbrev : unsigned { LastPlusOne }
 

Functions

ParameterKind parameterTypeNameToKind (StringRef Name)
 
void createShaderModelMD (Module &M)
 
void WriteDXILToFile (const Module &M, raw_ostream &Out)
 Write the specified module to the specified raw output stream. More...
 

Typedef Documentation

◆ PointerTypeMap

Definition at line 25 of file PointerTypeAnalysis.h.

Enumeration Type Documentation

◆ MetadataAbbrev

enum llvm::dxil::MetadataAbbrev : unsigned
Enumerator
LastPlusOne 

Definition at line 59 of file DXILBitcodeWriter.cpp.

◆ ParameterKind

enum llvm::dxil::ParameterKind : uint8_t
strong
Enumerator
INVALID 
VOID 
HALF 
FLOAT 
DOUBLE 
I1 
I8 
I16 
I32 
I64 
OVERLOAD 
CBUFFER_RET 
RESOURCE_RET 
DXIL_HANDLE 

Definition at line 25 of file DXILOperationCommon.h.

Function Documentation

◆ createShaderModelMD()

void llvm::dxil::createShaderModelMD ( Module M)

Definition at line 70 of file DXILMetadata.cpp.

◆ parameterTypeNameToKind()

ParameterKind llvm::dxil::parameterTypeNameToKind ( StringRef  Name)
inline

◆ WriteDXILToFile()

void llvm::dxil::WriteDXILToFile ( const Module M,
raw_ostream Out 
)

Write the specified module to the specified raw output stream.

Write the specified module to the specified output stream.

For streams where it matters, the given stream should be in "binary" mode.

Definition at line 389 of file DXILBitcodeWriter.cpp.

References llvm::BWH_HeaderSize, llvm::SmallVectorImpl< T >::insert(), M, llvm::SmallVectorImpl< T >::reserve(), llvm::raw_ostream::write(), llvm::dxil::BitcodeWriter::writeModule(), llvm::dxil::BitcodeWriter::writeStrtab(), and llvm::dxil::BitcodeWriter::writeSymtab().