R600/SI: Move gds operand to the end of operand list
[oota-llvm.git] / lib / IR / Function.cpp
index fe44f17d6862875047047eafbdf7ee8ebbdb8549..33e1526252465574abbeebb4d2e2b008d262f798 100644 (file)
@@ -343,6 +343,12 @@ void Function::removeAttributes(unsigned i, AttributeSet attrs) {
   setAttributes(PAL);
 }
 
+void Function::addDereferenceableAttr(unsigned i, uint64_t Bytes) {
+  AttributeSet PAL = getAttributes();
+  PAL = PAL.addDereferenceableAttr(getContext(), i, Bytes);
+  setAttributes(PAL);
+}
+
 // Maintain the GC name for each function in an on-the-side table. This saves
 // allocating an additional word in Function for programs which do not use GC
 // (i.e., most programs) at the cost of increased overhead for clients which do