[llvm] [DirectX] Add DXIL_MODULE_FLAG for ShaderFlags. (PR #83217)

Xiang Li via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 17 07:34:21 PDT 2024


================
@@ -51,7 +51,12 @@ void ComputedShaderFlags::print(raw_ostream &OS) const {
   if (FlagVal == 0)
     return;
   OS << "; Note: shader requires additional functionality:\n";
-#define SHADER_FEATURE_FLAG(bit, FlagName, Str)                                \
+#define SHADER_FEATURE_FLAG(FeatureBit, DxilModuleNum, FlagName, Str)          \
+  if (FlagName)                                                                \
+    OS << ";       " Str "\n";
----------------
python3kgae wrote:

Fixed with raw_ostream::indent.

https://github.com/llvm/llvm-project/pull/83217


More information about the llvm-commits mailing list