search for: bb_addr_map

Displaying 2 results from an estimated 2 matches for "bb_addr_map".

2020 Sep 16
2
Making library calls for obj2yaml functionalities
Hi All, Following up on https://lists.llvm.org/pipermail/llvm-dev/2020-July/143512.html, and https://reviews.llvm.org/D85408, we would like to consider a design which allows external tools to read the structured contents of the .bb_addr_map section with library calls into an LLVM library. At the same time, we need to have tools/obj2yaml tests in place for bb_addr_map. So it sounds like the perfect place to do it. However, the current structure does not expose the obj2yaml functionalities under lib/ObjectYAML. In general, there seems...
2020 Sep 18
2
Making library calls for obj2yaml functionalities
...in this context? If > it's just for testing purposes, adding support to llvm-readobj/llvm-readelf > would be the more normal way, as it allows you to dump just that section. > Other than testing, we currently have code in an external tool called create_llvm_prof for parsing the ".bb_addr_map" section (+Han Shen <shenhan at google.com> who's the main developer of that tool) and loading it in memory. It would've been great if we could just link with an LLVM library which includes the data-structure and parsing support. It looks like llvm-readelf is more structured arou...