Issue 91489
Summary [DirectX] Design and Implement TableGen specification of DXIL operation attributes
Labels new issue
Assignees
Reporter bharadwajy
    Design and implement a format to specify following DXIL Operations attributes as defined in [`hctdb.py`](https://github.com/microsoft/DirectXShaderCompiler/blob/main/utils/hct/hctdb.py) in their corresponding TableGen records 

- `fn_attr` - Attribute shorthand strings: rn=does not access memory,ro=only reads from memory,
- `is_deriv` - Bool indicating whether this is some kind of derivative
- `is_gradient` - Bool indicating whether this requires a gradient calculation
- `is_feedback` - Bool indicating whether this is a sampler feedback op
- `is_wave`  - Bool indicating whether this requires in-wave, cross-lane functionality
- `requires_uniform_inputs`  - Bool indicating whether this operation requires that all of its inputs are uniform across the wave
- `is_barrier`  - Bool indicating whether this is a barrier operation
- `shader_stages` - shader stages to which this applies, empty for all.
- `is_reserved` - Bool that evaluates (dxil_class == "Reserved")
- `shader_model_translated` - minimum shader model required with translation by linker
- `props` - extra properties

Implement the functionality in TableGen backend, `DXILEmitter`, to generate necessary C++ data structures and/or tables for lowering passes to consume the attribute information. 
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to