mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
Add a new attribute: norecurse
This attribute allows the compiler to assume that the function never recurses into itself, either directly or indirectly (transitively). This can be used among other things to demote global variables to locals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252282 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1305,6 +1305,8 @@ static Attribute::AttrKind getAttrFromCode(uint64_t Code) {
|
||||
return Attribute::NoImplicitFloat;
|
||||
case bitc::ATTR_KIND_NO_INLINE:
|
||||
return Attribute::NoInline;
|
||||
case bitc::ATTR_KIND_NO_RECURSE:
|
||||
return Attribute::NoRecurse;
|
||||
case bitc::ATTR_KIND_NON_LAZY_BIND:
|
||||
return Attribute::NonLazyBind;
|
||||
case bitc::ATTR_KIND_NON_NULL:
|
||||
|
||||
Reference in New Issue
Block a user