diff options
author | Deric C. <cheung.deric@gmail.com> | 2025-04-09 18:14:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-09 18:14:23 -0700 |
commit | 747d4a952bf7ed4adec72ddf3c9038aeff4fe8ee (patch) | |
tree | 8c5a5ff8f879f4f945e3242ed2ca47768838db10 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | b88eef95e72ed54580c3f65c49cc8b768a764938 (diff) | |
download | llvm-747d4a952bf7ed4adec72ddf3c9038aeff4fe8ee.zip llvm-747d4a952bf7ed4adec72ddf3c9038aeff4fe8ee.tar.gz llvm-747d4a952bf7ed4adec72ddf3c9038aeff4fe8ee.tar.bz2 |
[DirectX] Implement UseNativeLowPrecision shader flag analysis (#134288)
Fixes #112267
Implement the shader flag analysis to set the UseNativeLowPrecision DXIL
module flag.
The flag is only able to be set when the command-line flag
`-enable-16bit-types` is passed to clang-dxc, or equivalently
`-fnative-half-type` is passed to clang.
When the command-line flag is passed, a module metadata flag called
"dx.nativelowprec" is set to 1.
The DXILShaderFlags shader flags analysis checks that the module
metadata flag "dx.nativelowprec" is set to 1 and the DXIL Version is 1.2
or greater before setting the UseNativeLowPrecision DXIL module flag.
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions