[BOLT] Add blocks order kind to YAML profile header
authorAmir Ayupov <aaupov@fb.com>
Tue, 25 Jul 2023 04:32:44 +0000 (21:32 -0700)
committerAmir Aupov <amir.aupov@gmail.com>
Tue, 25 Jul 2023 04:33:05 +0000 (21:33 -0700)
commit1e0d08e872279ae521ce4afda6c227788e8eb177
tree14035096cd48ae6f2010090dd160ab0a9f55c9a3
parent998003eaf7b91b5620eeb0b77c81654b9f36efb7
[BOLT] Add blocks order kind to YAML profile header

Specify blocks order used in YAML profile. Needed to ensure profile backwards
compatibility with pre-D155514 DFS order by default.

Reviewed By: #bolt, maksfb

Differential Revision: https://reviews.llvm.org/D156176
bolt/include/bolt/Profile/ProfileYAMLMapping.h
bolt/lib/Profile/YAMLProfileReader.cpp
bolt/lib/Profile/YAMLProfileWriter.cpp
bolt/test/yaml-profile-kind.c [new file with mode: 0644]