HomePhabricator

[attributes] Add an attribute for server routines in Mach kernel and extensions.

Authored by dergachev.a on Feb 20 2019, 4:01 PM.

Description

[attributes] Add an attribute for server routines in Mach kernel and extensions.

The new attribute ((mig_server_routine)) is going to be used for annotating
Mach Interface Generator (MIG) callback functions as such, so that additional
static analysis could be applied to their implementations. It can also be
applied to regular functions behavior of which is supposed to be identical to
that of a MIG server routine.

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

llvm-svn: 354530