codegen_instance_attrs
and use it for naked functions
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.