hctdb.py: enable dxil op signature checks #7986
Open
+283
−304
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change will not have any impact on DXIL IR, but helps us follow consistent definition rules in the future.
This enables the check for consistency between DXIL ops that share OpCodeClass, with an exception for the long-known inconsistent op, which will not likely be fixed in the future, as the fix would have a visible impact on DXIL IR, and would require compatibility work-arounds and potential driver updates and testing.
Also improves the check for function attributes and overloaded vs. not overloaded ("v") ops.
This revealed violations in RayQuery and HitObject state query ops, which fortunately could be fixed without changing DXIL IR.
This also enables checks that operand overload type usage is consistent with the oload_types string.
This revealed violations of two general types:
For the first case, I used the overload type in the corresponding operand and added "TODO: Overload Note:" comments, though it's unlikely any of these would be fixed, due to the change in DXIL IR it would produce.
For the sescond case, I used the overload type, but did not add the note, since the oload_types could reasonably be expanded in the future.
This also removes some unused overload types in hctdb_instrhelp.py and renamed "udt" and "obj" to "$udt" and "$obj" to follow the otherwise consistent rule that all overload types start with "$".
Generated changes in DxilOperations.cpp will have no impact on DXIL, as the overload type would always match the previously hard-coded type.
Fixes #7984