[all-commits] [llvm/llvm-project] 310a62: [HLSL][RootSignature] Plug-in serialization and ad...

Finn Plummer via All-commits all-commits at lists.llvm.org
Mon Jun 23 17:19:34 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 310a62f88aa9610b125f7958a131f3d76df50849
      https://github.com/llvm/llvm-project/commit/310a62f88aa9610b125f7958a131f3d76df50849
  Author: Finn Plummer <finn.c.plum at gmail.com>
  Date:   2025-06-23 (Mon, 23 Jun 2025)

  Changed paths:
    M clang/test/AST/HLSL/RootSignatures-AST.hlsl
    M llvm/include/llvm/Frontend/HLSL/HLSLRootSignatureUtils.h
    M llvm/lib/Frontend/HLSL/HLSLRootSignatureUtils.cpp
    M llvm/unittests/Frontend/HLSLRootSignatureDumpTest.cpp

  Log Message:
  -----------
  [HLSL][RootSignature] Plug-in serialization and add full sample testcase (#144769)

This pr extends `dumpRootElements` to invoke the print methods of all
`RootElement`s now that they are all implemented.

Extends the `RootSignatures-AST.hlsl` testcase to have a root element of
each type being parsed, constructed to the in-memory representation mode
and then being dumped as part of the AST dump.

- Update `HLSLRootSignatureUtils.cpp` to extend `dumpRootElements`
- Extend `AST/HLSL/RootSigantures-AST.hlsl` testcase
- Defines the helper `operator<<` for `RootElement`
- Small correction to the output of `numDescriptors` to be `unbounded`
in special case

Resolves https://github.com/llvm/llvm-project/issues/124595.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list