[LLVMdev] RFC: Metadata attachments to function definitions
Diego Novillo
dnovillo at google.com
Thu Apr 16 07:40:17 PDT 2015
On Wed, Apr 15, 2015 at 12:33 AM, Duncan P. N. Exon Smith
<dexonsmith at apple.com> wrote:
> 1. For PGO, we need somewhere to attach the function entry count.
> Attaching to the function definition is a simple solution.
>
> define void @foo() !prof !0 {
> unreachable
> }
> !0 = !{i32 987}
I've been thinking about ways of storing this information somewhere
and this should be perfect for my needs. Thanks!
Diego.
More information about the llvm-dev
mailing list