[llvm-branch-commits] [llvm] [HLSLSemanticSignatures] Implement the indexed packing of elements (PR #218061)
Helena Kotas via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Aug 27 12:06:06 PDT 2026
================
@@ -67,17 +73,25 @@ class HLSLSemanticSignaturePackingTest : public testing::Test {
return Elements;
}
- Error packStacked(SmallVectorImpl<SemanticSignatureElement> &Elements,
- const TestConfig &Config) {
- return packSignatureStacked(Elements, Config.ShaderStage, Config.IOTy);
+ Error pack(PackingMethod Method,
+ SmallVectorImpl<SemanticSignatureElement> &Elements,
+ const TestConfig &Config) {
+ switch (Method) {
+ case PackingMethod::Stacked:
+ return packSignatureStacked(Elements, Config.ShaderStage, Config.IOTy);
+ case PackingMethod::Indexed:
+ return packSignatureIndexed(Elements, Config.ShaderStage, Config.IOTy);
+ }
+ llvm_unreachable("invalid packing method");
}
- void expectPacking(const TestConfig &Config, unsigned ExpectedRows,
+ void expectPacking(PackingMethod Method, const TestConfig &Config,
----------------
hekota wrote:
```suggestion
void verifyPacking(PackingMethod Method, const TestConfig &Config,
```
https://github.com/llvm/llvm-project/pull/218061
More information about the llvm-branch-commits
mailing list