LLVM 20.0.0git
Macros | Functions | Variables
DXILShaderFlags.cpp File Reference
#include "DXILShaderFlags.h"
#include "DirectX.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Analysis/DXILResource.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/IntrinsicsDirectX.h"
#include "llvm/IR/Module.h"
#include "llvm/InitializePasses.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/BinaryFormat/DXContainerConstants.def"

Go to the source code of this file.

Macros

#define SHADER_FEATURE_FLAG(FeatureBit, DxilModuleNum, FlagName, Str)
 
#define DXIL_MODULE_FLAG(DxilModuleBit, FlagName, Str)
 

Functions

static void updateFunctionFlags (ComputedShaderFlags &CSF, const Instruction &I, DXILResourceTypeMap &DRTM)
 
 INITIALIZE_PASS_BEGIN (ShaderFlagsAnalysisWrapper, "dx-shader-flag-analysis", "DXIL Shader Flag Analysis", true, true) INITIALIZE_PASS_END(ShaderFlagsAnalysisWrapper
 

Variables

dx shader flag analysis
 
dx shader flag DXIL Shader Flag Analysis
 
dx shader flag DXIL Shader Flag true
 

Macro Definition Documentation

◆ DXIL_MODULE_FLAG

#define DXIL_MODULE_FLAG (   DxilModuleBit,
  FlagName,
  Str 
)
Value:
if (FlagName) \
(OS << ";").indent(7) << Str << "\n";
raw_pwrite_stream & OS

◆ SHADER_FEATURE_FLAG

#define SHADER_FEATURE_FLAG (   FeatureBit,
  DxilModuleNum,
  FlagName,
  Str 
)
Value:
if (FlagName) \
(OS << ";").indent(7) << Str << "\n";

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( ShaderFlagsAnalysisWrapper  ,
"dx-shader-flag-analysis"  ,
"DXIL Shader Flag Analysis"  ,
true  ,
true   
)

◆ updateFunctionFlags()

static void updateFunctionFlags ( ComputedShaderFlags CSF,
const Instruction I,
DXILResourceTypeMap DRTM 
)
static

Variable Documentation

◆ analysis

dx shader flag analysis

Definition at line 174 of file DXILShaderFlags.cpp.

◆ Analysis

dx shader flag DXIL Shader Flag Analysis

Definition at line 175 of file DXILShaderFlags.cpp.

◆ true

dx shader flag DXIL Shader Flag true

Definition at line 175 of file DXILShaderFlags.cpp.