mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 13:31:20 +00:00
Add function attribute 'optnone'.
This function attribute indicates that the function is not optimized by any optimization or code generator passes with the exception of interprocedural optimization passes. llvm-svn: 189101
This commit is contained in:
1 parent
03481334b5
commit
377496bbad
16 files changed
+72
-7
No files matched your search
@@ -205,6 +205,8 @@ static uint64_t getAttrKindEncoding(Attribute::AttrKind Kind) {
|
||||
return bitc::ATTR_KIND_NO_UNWIND;
|
||||
case Attribute::OptimizeForSize:
|
||||
return bitc::ATTR_KIND_OPTIMIZE_FOR_SIZE;
|
||||
case Attribute::OptimizeNone:
|
||||
return bitc::ATTR_KIND_OPTIMIZE_NONE;
|
||||
case Attribute::ReadNone:
|
||||
return bitc::ATTR_KIND_READ_NONE;
|
||||
case Attribute::ReadOnly:
|
||||
|
||||
Reference in new issue
Block a user