llvm-project/llvm/lib/ObjectYAML
Michael J. Spencer ae6eeaea92 [MC] Add assembler support for .cg_profile.
Object FIle Representation
At codegen time this is emitted into the ELF file a pair of symbol indices and a weight. In assembly it looks like:

.cg_profile a, b, 32
.cg_profile freq, a, 11
.cg_profile freq, b, 20

When writing an ELF file these are put into a SHT_LLVM_CALL_GRAPH_PROFILE (0x6fff4c02) section as (uint32_t, uint32_t, uint64_t) tuples as (from symbol index, to symbol index, weight).

Differential Revision: https://reviews.llvm.org/D44965

llvm-svn: 333823
2018-06-02 16:33:01 +00:00
..
CMakeLists.txt Update obj2yaml and yaml2obj for .debug$H section. 2017-12-06 18:58:48 +00:00
COFFYAML.cpp [Debuginfo][COFF] Minimal serialization support for precompiled types records 2018-04-09 20:17:56 +00:00
CodeViewYAMLDebugSections.cpp [YAML] Add support for non-printable characters 2017-12-18 17:38:03 +00:00
CodeViewYAMLSymbols.cpp Fix uninitialized read error reported by MSAN. 2018-01-08 21:38:50 +00:00
CodeViewYAMLTypeHashing.cpp Resubmit [pdb] Change /DEBUG:GHASH to emit 8 byte hashes." 2018-05-17 22:55:15 +00:00
CodeViewYAMLTypes.cpp Fix line endings (CR/LF -> LF) introduced by rL329613 2018-04-10 00:09:15 +00:00
DWARFEmitter.cpp Move helper classes into anonymous namespaces. NFCI. 2018-05-15 21:26:47 +00:00
DWARFVisitor.cpp Move helper classes into anonymous namespaces. 2017-08-20 13:03:48 +00:00
DWARFVisitor.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
DWARFYAML.cpp [ObjectYAML] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-07-01 01:35:55 +00:00
ELFYAML.cpp [MC] Add assembler support for .cg_profile. 2018-06-02 16:33:01 +00:00
LLVMBuild.txt [CodeView] Move CodeView YAML code to ObjectYAML. 2017-05-30 21:53:05 +00:00
MachOYAML.cpp [YAML] Add support for non-printable characters 2017-12-18 17:38:03 +00:00
ObjectYAML.cpp [ObjectYAML] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-07-01 01:35:55 +00:00
WasmYAML.cpp [WebAssembly] Write DWARF data into wasm object file 2018-04-26 19:27:28 +00:00
YAML.cpp [ObjectYAML] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-07-01 01:35:55 +00:00