apilipenko added a comment. In http://reviews.llvm.org/D11058#202557, @hfinkel wrote: > Which API? Function *function; function->setAttributes(function->getAttributes().addAttribute(context, i, "attribute")); http://reviews.llvm.org/D11058