[llvm-branch-commits] [llvm] [NFC] Refactoring DXContainerYaml Root Parameter representation (PR #138318)

Finn Plummer via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 20 10:48:02 PDT 2025


================
@@ -112,98 +113,17 @@ struct DescriptorTableYaml {
   SmallVector<DescriptorRangeYaml> Ranges;
 };
 
+using ParameterData =
+    std::variant<RootConstantsYaml, RootDescriptorYaml, DescriptorTableYaml>;
+
 struct RootParameterYamlDesc {
   uint32_t Type;
----------------
inbelic wrote:

This field can be removed now right? IIUC, it is held in the variant

edit: Ah wait, it seems we use it when constructing the object from YAML. Is there an easy way we can just use the variant type to do so?

https://github.com/llvm/llvm-project/pull/138318


More information about the llvm-branch-commits mailing list