[llvm] [MIR] Serialize virtual register flags (PR #110228)
Akshat Oke via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 3 22:44:21 PDT 2024
================
@@ -206,6 +207,8 @@ template <> struct MappingTraits<VirtualRegisterDefinition> {
YamlIO.mapRequired("class", Reg.Class);
YamlIO.mapOptional("preferred-register", Reg.PreferredRegister,
StringValue()); // Don't print out when it's empty.
+ YamlIO.mapOptional("flags", Reg.RegisterFlags,
+ std::vector<FlowStringValue>());
----------------
Akshat-Oke wrote:
DefaultT and T are separate, so the type can't be deduced.
https://github.com/llvm/llvm-project/pull/110228
More information about the llvm-commits
mailing list