llvm.org GIT mirror llvm / be1ce0a
Add utility method for determining whether a function argument has the 'nest' attribute. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91109 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan Sands 10 years ago
2 changed file(s) with 11 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
5050 /// in its containing function.
5151 bool hasByValAttr() const;
5252
53 /// hasNestAttr - Return true if this argument has the nest attribute on
54 /// it in its containing function.
55 bool hasNestAttr() const;
56
5357 /// hasNoAliasAttr - Return true if this argument has the noalias attribute on
5458 /// it in its containing function.
5559 bool hasNoAliasAttr() const;
7676 return getParent()->paramHasAttr(getArgNo()+1, Attribute::ByVal);
7777 }
7878
79 /// hasNestAttr - Return true if this argument has the nest attribute on
80 /// it in its containing function.
81 bool Argument::hasNestAttr() const {
82 if (!isa(getType())) return false;
83 return getParent()->paramHasAttr(getArgNo()+1, Attribute::Nest);
84 }
85
7986 /// hasNoAliasAttr - Return true if this argument has the noalias attribute on
8087 /// it in its containing function.
8188 bool Argument::hasNoAliasAttr() const {