IR: Add Function metadata attachments