We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09864cf commit 0e8b7faCopy full SHA for 0e8b7fa
clang/lib/CodeGen/CGHLSLRuntime.cpp
@@ -287,6 +287,10 @@ void CGHLSLRuntime::finishCodeGen() {
287
Triple T(M.getTargetTriple());
288
if (T.getArch() == Triple::ArchType::dxil)
289
addDxilValVersion(TargetOpts.DxilValidatorVersion, M);
290
+
291
+ // NativeHalfType corresponds to the -fnative-half-type clang option which is
292
+ // aliased by clang-dxc's -enable-16bit-types option. This option is used to
293
+ // set the UseNativeLowPrecision DXIL module flag in the DirectX backend
294
if (LangOpts.NativeHalfType)
295
M.setModuleFlag(llvm::Module::ModFlagBehavior::Error, "dx.nativelowprec",
296
1);
0 commit comments