We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58f9326 commit 3af250fCopy full SHA for 3af250f
llvm/lib/IR/Function.cpp
@@ -533,6 +533,14 @@ void Function::addAttribute(unsigned i, Attribute Attr) {
533
AttributeSets = AttributeSets.addAttribute(getContext(), i, Attr);
534
}
535
536
+void Function::addAttribute(unsigned i, Attribute::AttrKind Attr) {
537
+ AttributeSets = AttributeSets.addAttribute(getContext(), i, Attr);
538
+}
539
+
540
+void Function::addAttributes(unsigned i, const AttrBuilder &Attrs) {
541
+ AttributeSets = AttributeSets.addAttributes(getContext(), i, Attrs);
542
543
544
void Function::addFnAttr(Attribute::AttrKind Kind) {
545
AttributeSets = AttributeSets.addFnAttribute(getContext(), Kind);
546
0 commit comments