SPIRV: Add disassembly support for multiple literal strings (#2397)
authorRex Xu <rex.xu@amd.com>
Mon, 14 Sep 2020 15:57:09 +0000 (11:57 -0400)
committerGitHub <noreply@github.com>
Mon, 14 Sep 2020 15:57:09 +0000 (09:57 -0600)
commitac2f01f4bd89762c084003003a15c2be0939877d
tree3533416888f6cba07f602c68a7b938c60a505859
parent3933d7d414516698a46ebdd9a0bcbd0e0a9a1cf0
SPIRV: Add disassembly support for multiple literal strings (#2397)

According to the extension SPV_GOOGLE_decorate_string,
OpDecorateString (or OpMemberDecorateString) ought to be capable of
supporting multiple literal strings. Each literal strings are padded
with null terminator to make word alignment. The layout is:

  Inst | Target | Decoration | Literal String, Literal String, ...
SPIRV/SPVRemapper.cpp
SPIRV/disassemble.cpp
SPIRV/doc.cpp
SPIRV/doc.h