[llvm] [HLSLSemanticSignatures] Implement the optimal packing of elements (PR #218064)
Helena Kotas via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 22 21:03:00 PDT 2026
================
@@ -105,6 +105,25 @@ LLVM_ABI Expected<unsigned>
packSignatureIndexed(MutableArrayRef<SemanticSignatureElement> Elements,
Triple::EnvironmentType ShaderStage, IOType IOTy);
+/// Packs eligible signature elements in an optimized order by reordering
+/// elements into a optimal packind order and allowing clip/cull to share
+/// comapatible rows. Only StartRow and StartCol are modified
+///
+/// See llvm/docs/DirectX/SemanticSignatures.md#optimized-packing for details.
+///
+/// Returns one past the highest allocated row, or zero if no elements were
----------------
hekota wrote:
```suggestion
/// Returns the number of allocated rows, or zero if no elements were
```
https://github.com/llvm/llvm-project/pull/218064
More information about the llvm-commits
mailing list