[llvm] [DirectX] Add DXIL_MODULE_FLAG for ShaderFlags. (PR #83217)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 13 15:41:53 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";
----------------
farzonl wrote:
i'm not sure what the llvm equivalent is but seems like we should be doing something like std::setw.
https://github.com/llvm/llvm-project/pull/83217
More information about the llvm-commits
mailing list