X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FIR%2FInstructions.h;h=e0a368a8d4d93702c4dad670a01b2130bab06e45;hb=5ff590799654e01ceea6383932fc25e8e622c46a;hp=2c8bc19518da00ee79ecb24ddf91d1f868d83d0a;hpb=3054c3e9820ba4c6da7722243e7bdcc0695543d7;p=oota-llvm.git diff --git a/include/llvm/IR/Instructions.h b/include/llvm/IR/Instructions.h index 2c8bc19518d..e0a368a8d4d 100644 --- a/include/llvm/IR/Instructions.h +++ b/include/llvm/IR/Instructions.h @@ -1412,6 +1412,10 @@ public: /// \brief adds the dereferenceable attribute to the list of attributes. void addDereferenceableAttr(unsigned i, uint64_t Bytes); + /// \brief adds the dereferenceable_or_null attribute to the list of + /// attributes. + void addDereferenceableOrNullAttr(unsigned i, uint64_t Bytes); + /// \brief Determine whether this call has the given attribute. bool hasFnAttr(Attribute::AttrKind A) const { assert(A != Attribute::NoBuiltin && @@ -3104,6 +3108,10 @@ public: /// \brief adds the dereferenceable attribute to the list of attributes. void addDereferenceableAttr(unsigned i, uint64_t Bytes); + /// \brief adds the dereferenceable_or_null attribute to the list of + /// attributes. + void addDereferenceableOrNullAttr(unsigned i, uint64_t Bytes); + /// \brief Determine whether this call has the given attribute. bool hasFnAttr(Attribute::AttrKind A) const { assert(A != Attribute::NoBuiltin &&