llvm-project
6312d275 - [DirectX] Emit `hlsl.wavesize` function attribute as entry property metadata (#165624)

Commit
11 hours ago
[DirectX] Emit `hlsl.wavesize` function attribute as entry property metadata (#165624) This pr adds support for emitting the `hlsl.wavesize` function attribute as an entry property metadata for a compute shader. It follows the implementation of `hlsl.numthreads`. - Collects the wave range information from the function attribute in `DXILMetadataAnalysis` - Introduce the `WaveRange` property tag - Emit a `WaveSize` or `WaveRange` metadata (depending on shader model) in `DXILTranslateMetadata` - Add tests for valid/invalid scenarios - Updates the base `PSVInfo` to reflect the min/max wave lane counts Resolves #70118
Author
Parents
Loading