llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
26.8k stars 10.98k forks source link

[DirectX] remove module flag and function attribute not supported by DXIL #90773

Open python3kgae opened 2 months ago

python3kgae commented 2 months ago

The only module flags DXIL used are "Dwarf Version" and "Debug Info Version".

And the only string function attributes allowed in DXIL are "waveops-include-helper-lanes" and "fp32-denorm-mode".

Other string function attributes and module flags should be removed before emit DXIL.

python3kgae commented 1 week ago

Reopen for missing the module flag part.

python3kgae commented 1 week ago

Add PR to document module flag at DXC repo https://github.com/microsoft/DirectXShaderCompiler/pull/6722