[LLVMdev] RFC: Metadata attachments to function definitions

Duncan P. N. Exon Smith dexonsmith at apple.com
Wed Apr 15 10:08:23 PDT 2015


> On 2015-Apr-15, at 10:03, Reid Kleckner <rnk at google.com> wrote:
> 
> On Wed, Apr 15, 2015 at 9:46 AM, Duncan P. N. Exon Smith <dexonsmith at apple.com> wrote:
> I'm happy to defer to conventional wisdom here if anyone wants me to
> (and TBH, I've only been looking at profiles that include debug info,
> so maybe `sizeof(Function)` matters with -g0).
> 
> I think JITs are a more compelling use case for keeping Function small. They shouldn't have to pay too much for a feature they don't use. 

Ah, of course.  I know nothing of JITs.

I'll squeeze it into 8B then.  Maybe I'll even start with the same setup
as `Instruction`, with a side map in the `LLVMContext`.  No reason to
diverge until/unless there's a real problem with it.



More information about the llvm-dev mailing list