mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-23 12:10:06 +00:00
e935dac9ef
* Make pointers to logically matching types interchangeable with option. DXC will be generating code where the function parameters will be a more generic type that the actual parameter. They should be logically matching and the decorations of the actual parameter must be a superset of the decorations of the formal parameter. We want to accept this code with an options so that spirv-opt can then inline and fix the type mismatch. We will accept this under a new options `--before-hlsl-legalization`. The new option will also imply `relax-logical-pointer` so that HLSL frontends will need to use just the one more generic option. Moved the |LogicallyMatches| to the validation state to make it available in more places. Also added a parameter to have it check the decorations. I did not do a separate function for the decorations because checking the decorations involves making sure the types logically match anyway. Fixes #2535 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
pch_test_val.cpp | ||
pch_test_val.h | ||
val_adjacency_test.cpp | ||
val_arithmetics_test.cpp | ||
val_atomics_test.cpp | ||
val_barriers_test.cpp | ||
val_bitwise_test.cpp | ||
val_builtins_test.cpp | ||
val_capability_test.cpp | ||
val_cfg_test.cpp | ||
val_code_generator.cpp | ||
val_code_generator.h | ||
val_composites_test.cpp | ||
val_constants_test.cpp | ||
val_conversion_test.cpp | ||
val_data_test.cpp | ||
val_decoration_test.cpp | ||
val_derivatives_test.cpp | ||
val_explicit_reserved_test.cpp | ||
val_ext_inst_test.cpp | ||
val_extensions_test.cpp | ||
val_fixtures.h | ||
val_function_test.cpp | ||
val_id_test.cpp | ||
val_image_test.cpp | ||
val_interfaces_test.cpp | ||
val_layout_test.cpp | ||
val_limits_test.cpp | ||
val_literals_test.cpp | ||
val_logicals_test.cpp | ||
val_memory_test.cpp | ||
val_modes_test.cpp | ||
val_non_uniform_test.cpp | ||
val_primitives_test.cpp | ||
val_ssa_test.cpp | ||
val_state_test.cpp | ||
val_storage_test.cpp | ||
val_type_unique_test.cpp | ||
val_validation_state_test.cpp | ||
val_version_test.cpp | ||
val_webgpu_test.cpp |