Added stringise for DXIL::Type::TypeKind

This commit is contained in:
Jake Turner
2024-06-03 12:48:13 +01:00
parent 133a1d6a40
commit ce3477d7ab
2 changed files with 19 additions and 0 deletions
@@ -1673,3 +1673,4 @@ DECLARE_STRINGISE_TYPE(DXIL::InstructionFlags);
DECLARE_STRINGISE_TYPE(DXIL::AtomicBinOpCode);
DECLARE_STRINGISE_TYPE(DXIL::Operation);
DECLARE_STRINGISE_TYPE(DXIL::DXOp);
DECLARE_STRINGISE_TYPE(DXIL::Type::TypeKind);
@@ -491,3 +491,21 @@ rdcstr DoStringise(const DXIL::DXOp &el)
}
END_ENUM_STRINGISE();
}
template <>
rdcstr DoStringise(const DXIL::Type::TypeKind &el)
{
BEGIN_ENUM_STRINGISE(DXIL::Type::TypeKind);
{
STRINGISE_ENUM_CLASS(None);
STRINGISE_ENUM_CLASS(Scalar);
STRINGISE_ENUM_CLASS(Vector);
STRINGISE_ENUM_CLASS(Pointer);
STRINGISE_ENUM_CLASS(Array);
STRINGISE_ENUM_CLASS(Function);
STRINGISE_ENUM_CLASS(Struct);
STRINGISE_ENUM_CLASS(Metadata);
STRINGISE_ENUM_CLASS(Label);
}
END_ENUM_STRINGISE();
}