LLVM 20.0.0git
Macros | Functions
DXILShaderFlags.cpp File Reference
#include "DXILShaderFlags.h"
#include "DirectX.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/FormatVariadic.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 updateFlags (ComputedShaderFlags &Flags, const Instruction &I)
 

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

◆ updateFlags()

static void updateFlags ( ComputedShaderFlags Flags,
const Instruction I 
)
static

Definition at line 23 of file DXILShaderFlags.cpp.

References I, and llvm::Type::isDoubleTy().

Referenced by llvm::dxil::ComputedShaderFlags::computeFlags().