To set multiple attributes, you can use the llvm::AttrBuilder class. The other way to provide additional information is to use…