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

Namespaces

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

Classes

class  BitcodeWriter
 
class  CBufferDataLayout
 
struct  ComputedShaderFlags
 
class  ConstantBuffer
 
class  DXILBitcodeWriter
 
class  DXILOpBuilder
 
class  LegacyCBufferLayout
 
class  ResourceBase
 
class  Resources
 
class  ResourceTable
 
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 class  ParameterKind : uint8_t {
  INVALID = 0 , VOID , HALF , FLOAT ,
  DOUBLE , I1 , I8 , I16 ,
  I32 , I64 , OVERLOAD , CBUFFER_RET ,
  RESOURCE_RET , DXIL_HANDLE
}
 
enum  MetadataAbbrev : unsigned { LastPlusOne }
 

Functions

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

Typedef Documentation

◆ PointerTypeMap

Definition at line 25 of file PointerTypeAnalysis.h.

Enumeration Type Documentation

◆ MetadataAbbrev

Enumerator
LastPlusOne 

Definition at line 59 of file DXILBitcodeWriter.cpp.

◆ ParameterKind

enum class 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

◆ createEntryMD()

void llvm::dxil::createEntryMD ( Module M,
const uint64_t  ShaderFlags 
)

◆ createShaderModelMD()

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

◆ 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 387 of file DXILBitcodeWriter.cpp.

References llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::BWH_HeaderSize, llvm::SmallVectorBase< Size_T >::empty(), llvm::SmallVectorTemplateCommon< T, typename >::front(), llvm::SmallVectorImpl< T >::insert(), llvm::SmallVectorImpl< T >::reserve(), llvm::SmallVectorBase< Size_T >::size(), llvm::raw_ostream::write(), and llvm::dxil::BitcodeWriter::writeModule().