[llvm] [DXIL][Doc] Update specification of to use TableGen list instead of dag (PR #99055)
S. Bharadwaj Yadavalli via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 22 10:54:45 PDT 2024
================
@@ -172,112 +177,257 @@ Shader Model version is represented as follows:
int Minor = minor;
}
- // Valid Shader model version records
- // Definition of Shader Model 6.0 - 6.8 and DXIL Version 1.0 - 1.8
+Concrete representations of valid DXIL versions are defined as follows:
+
+.. code-block::
+
+ // Definition of DXIL Version 1.0 - 1.8
foreach i = 0...8 in {
- def SM6_#i : Version<6, i>;
- def DX1_#i : Version<1, i>;
+ def DXIL1_#i : Version<1, i>;
}
-A shader model version predicate class is defined as
+Shader Stage Specification
+==========================
+
+Various shader stages such as ``compute``, ``pixel``, ``vertex``, etc., are represented
+as follows
.. code-block::
- class SMVersion<Version ver> : Pred {
- Version SMVersion = ver;
- }
+ // Shader stages
+ class ShaderStage;
----------------
bharadwajy wrote:
> Should this be `DXILShaderStage` for consistency? I notice we have `DXILAttribute` below.
Renamed.
https://github.com/llvm/llvm-project/pull/99055
More information about the llvm-commits
mailing list