SWDEV-281658 - Preserve the callback IDs enum ordering

This change addresses the rocprofiler and HIP backward compatibility
issues. Before this patch, each time the hip_prof_str.h header was
generated, the ordering of the callbacks IDs changed, causing
incompatibilities between tools compiled with the old header and
runtimes compiled with the new headers (or vice versa).

To make the API callback IDs stable, the previous version of the header
is read to extract the enum values so that the same values can be
assigned in the new header.

Also, to make diffing different versions of the hip_prof_str.h easier
to read, all other sections (types, macros, helper functions) are now
alphabetically ordered.

If an update to the checked-in hip_prof_str.h file is required, the
cmake build is aborted and a message printed on stderr. The build will
not be successful until the checked-in hip_prof_str.h and the generated
hip_prof_str.h match.

Change-Id: I38b920e601185f7365a76a6584df91a7e8a11798
Tá an tiomantas seo le fáil i:
Christophe Paquot údaraithe agus Christophe Paquot tiomanta 2021-07-09 11:17:09 -04:00
1 tuismitheoir 688288c2e3
tiomantas d208afcb36
4 comhad athraithe
+5729 -44

Níor tháinig aon chomhaid le do chuardach

Tá difríocht comhad cosc orthu toisc go bhfuil sé ró-mhór Luchtaigh an difríocht