mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 15:31:37 +00: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. llvm-svn: 252282
This commit is contained in:
1 parent
a805030ae8
commit
e6f87ca812
19 files changed
+49
-14
No files matched your search
@@ -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