Add argmemonly attribute.
This change adds new attribute called "argmemonly". Function marked with this attribute can only access memory through it's argument pointers. This attribute directly corresponds to the "OnlyAccessesArgumentPointees" ModRef behaviour in alias analysis. Differential Revision: http://reviews.llvm.org/D10398 llvm-svn: 241979
This commit is contained in:
@@ -1090,6 +1090,8 @@ static Attribute::AttrKind getAttrFromCode(uint64_t Code) {
|
||||
return Attribute::Alignment;
|
||||
case bitc::ATTR_KIND_ALWAYS_INLINE:
|
||||
return Attribute::AlwaysInline;
|
||||
case bitc::ATTR_KIND_ARGMEMONLY:
|
||||
return Attribute::ArgMemOnly;
|
||||
case bitc::ATTR_KIND_BUILTIN:
|
||||
return Attribute::Builtin;
|
||||
case bitc::ATTR_KIND_BY_VAL:
|
||||
|
||||
Reference in New Issue
Block a user