X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fllvm%2FIR%2FArgument.h;h=0092f49e49ad6200dcc8adeab4fb9dd8e0d9e903;hb=5b63de585b08b57632f5d80b2f1d133832e3e7f9;hp=dd76a90aa5ea799292882aa7ae8092495992213f;hpb=d047a9df7d4b2934d6a9c22528b668d6100c0f87;p=oota-llvm.git diff --git a/include/llvm/IR/Argument.h b/include/llvm/IR/Argument.h index dd76a90aa5e..0092f49e49a 100644 --- a/include/llvm/IR/Argument.h +++ b/include/llvm/IR/Argument.h @@ -21,8 +21,7 @@ namespace llvm { -template - class SymbolTableListTraits; +template class SymbolTableListTraits; /// \brief LLVM Argument representation /// @@ -36,7 +35,7 @@ class Argument : public Value, public ilist_node { virtual void anchor(); Function *Parent; - friend class SymbolTableListTraits; + friend class SymbolTableListTraits; void setParent(Function *parent); public: @@ -65,6 +64,11 @@ public: /// dereferenceable. Otherwise, zero is returned. uint64_t getDereferenceableBytes() const; + /// \brief If this argument has the dereferenceable_or_null attribute on + /// it in its containing function, return the number of bytes known to be + /// dereferenceable. Otherwise, zero is returned. + uint64_t getDereferenceableOrNullBytes() const; + /// \brief Return true if this argument has the byval attribute on it in its /// containing function. bool hasByValAttr() const;