Skip to content

Commit 4cb533b

Browse files
committed
Fix comment about the -enable-16bit-types flag
1 parent aa824ac commit 4cb533b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/DirectX/DXILShaderFlags.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,9 @@ void ModuleShaderFlags::initialize(Module &M, DXILResourceTypeMap &DRTM,
220220
if (RMA->getValue() != 0)
221221
CanSetResMayNotAlias = false;
222222

223-
// Set UseNativeLowPrecision using the dx.nativelowprec module flag set by
224-
// the command line option -enable-16bit-types
223+
// NativeLowPrecision can only be set when the command line option
224+
// -enable-16bit-types is provided. This is indicated by the dx.nativelowprec
225+
// module flag being set
225226
if (auto *NativeLowPrec = mdconst::extract_or_null<ConstantInt>(
226227
M.getModuleFlag("dx.nativelowprec")))
227228
if (MMDI.ShaderModelVersion >= VersionTuple(6, 2) &&

0 commit comments

Comments
 (0)