[Remarks] Add two serialization modes for remarks: separate and standalone
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Tue, 30 Jul 2019 16:01:40 +0000 (16:01 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Tue, 30 Jul 2019 16:01:40 +0000 (16:01 +0000)
commit5ed3d146f87e3103ea5bbdb27bca8d6b1b1f714a
tree2a160ee7506a668a00cba88f5058eeac01bc3d32
parentde0b6339991dcbaeab4a97a96fbf1570118b06ae
[Remarks] Add two serialization modes for remarks: separate and standalone

The default mode is separate, where the metadata is serialized
separately from the remarks.

Another mode is the standalone mode, where the metadata is serialized
before the remarks, on the same stream.

llvm-svn: 367328
llvm/docs/Remarks.rst
llvm/include/llvm/Remarks/RemarkSerializer.h
llvm/include/llvm/Remarks/YAMLRemarkSerializer.h
llvm/lib/IR/RemarkStreamer.cpp
llvm/lib/Remarks/RemarkSerializer.cpp
llvm/lib/Remarks/YAMLRemarkSerializer.cpp
llvm/unittests/Remarks/YAMLRemarksSerializerTest.cpp