[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-03 00:33:01 +08:00
|
|
|
# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
|
2020-06-26 11:35:03 +08:00
|
|
|
# RUN: llvm-mc -triple x86_64-pc-win32 %s | FileCheck %s
|
[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-03 00:33:01 +08:00
|
|
|
.cg_profile a, b, 32
|
|
|
|
.cg_profile freq, a, 11
|
|
|
|
.cg_profile freq, b, 20
|
|
|
|
|
|
|
|
# CHECK: .cg_profile a, b, 32
|
|
|
|
# CHECK: .cg_profile freq, a, 11
|
|
|
|
# CHECK: .cg_profile freq, b, 20
|